.kc-chat-box {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: "Lato", "Open Sans", Arial, sans-serif;
}

.kc-chat-toggle {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #ea4335;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: block;
    outline: none;
}

.kc-chat-toggle:hover,
.kc-chat-toggle:focus {
    background-color: #d73c2f;
    color: #ffffff;
}

.kc-chat-box.is-open .kc-chat-toggle {
    display: none;
}

.kc-chat-panel {
    display: none;
    width: 340px;
    max-height: calc(100vh - 120px);
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.kc-chat-box.is-open .kc-chat-panel {
    display: block;
}

.kc-chat-header {
    position: relative;
    background: #ea4335;
    color: #ffffff;
    padding: 16px 42px 16px 18px;
}

.kc-chat-header-text {
    display: block;
}

.kc-chat-header-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.kc-chat-header-text span {
    display: block;
    font-size: 12px;
    color: #ffe8e6;
    margin-top: 2px;
}

.kc-chat-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 28px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    outline: none;
}

.kc-chat-body {
    padding: 18px 20px 22px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.kc-chat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.kc-chat-select,
.kc-company-form input:not([type=submit]):not([type=radio]):not([type=checkbox]),
.kc-company-form textarea {
    width: 100%;
    height: auto;
    border: 1px solid #ececec !important;
    border-radius: 6px !important;
    background: #ececec;
    color: #444444;
    font-size: 14px;
    line-height: 1.4;
    padding: 12px 14px;
    margin-bottom: 10px;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.kc-company-form input.kc-field-error,
.kc-company-form textarea.kc-field-error {
    border-color: #ea4335 !important;
    background: #fff5f5;
}

.kc-chat-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
    cursor: pointer;
}

.kc-chat-candidate {
    margin-top: 8px;
    color: #444444;
    font-size: 14px;
    line-height: 1.5;
}

.kc-chat-link-btn {
    display: block;
    text-align: center;
    background: #ea4335;
    color: #ffffff !important;
    border-radius: 30px;
    padding: 10px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 12px;
}

.kc-chat-link-btn:hover,
.kc-chat-link-btn:focus {
    background: #d73c2f;
    color: #ffffff !important;
    text-decoration: none;
}

.kc-company-form {
    margin-top: 8px;
    text-align: center;
}

.kc-company-intro {
    margin: 4px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: #555555;
}

.kc-company-form textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.4;
}

.kc-company-submit {
    display: inline-block;
    min-width: 170px;
    margin-top: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: 30px;
    background: #ea4335;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
}

.kc-company-submit:hover,
.kc-company-submit:focus {
    background: #c73b30;
    color: #ffffff;
}

.kc-company-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.kc-form-success,
.kc-form-error {
    display: none;
    margin: 12px 0 0;
    font-size: 13px;
}

.kc-form-success {
    color: #2e7d32;
}

.kc-form-error {
    color: #c62828;
}

@media (max-width: 480px) {
    .kc-chat-box {
        right: 12px;
        bottom: 12px;
    }

    .kc-chat-panel {
        width: calc(100vw - 24px);
    }
}
