/* Custom Kustomer Feedback Widget Styling - Matching Site Design */

.kustomer-feedback-component {
    user-select: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    padding: 10px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.kustomer-feedback-component:not(.is-open):hover .kustomer-tooltip {
    opacity: 1;
    transform: translateX(-5px);
    transition: opacity .5s ease-out, transform .5s ease-out;
    visibility: visible;
}

.kustomer-feedback-component.is-open .kustomer-popup {
    opacity: 1;
    top: 0px;
    transform: translateY(-100%);
}

.kustomer-tooltip {
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    font-size: .8em;
    right: 70px;
    top: 25px;
    line-height: 1em;
    background-color: #044042;
    color: #fff;
    letter-spacing: .1em;
    border-radius: 1em;
    padding: .55em 1em;
}

.kustomer-trigger {
    cursor: pointer;
    border-radius: 1000px;
    width: 50px;
    height: 50px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(4,64,66,.2);
    transition: all 0.3s ease;
}

.kustomer-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(4,64,66,.3);
}

.kustomer-trigger img {
    max-width: 100%;
}

.kustomer-trigger.is-kustomer-trigger-spinning {
    animation: spin .5s ease-in-out;
}

.kustomer-trigger.is-kustomer-trigger-spinning-reverse {
    animation: spin-reverse .5s ease-in-out;
}

.kustomer-popup {
    transition: opacity .5s ease-out, transform .5s ease-out;
    position: absolute;
    box-shadow: 0 8px 32px rgba(4,64,66,.3);
    opacity: 0;
    background-color: #fff;
    width: 480px;
    min-height: 520px;
    top: 80px;
    border-radius: 12px;
    border: 1px solid rgba(0,170,173,.1);
    right: 10px;
    overflow: hidden;
}

.kustomer-header {
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.kustomer-logo {
    height: 60px;
    text-align: center;
    margin: 0 auto;
    width: 300px;
}

.kustomer-logo img {
    max-width: 100%;
    max-height: 100%;
}

.kustomer-header h1 {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 0 30px;
    text-align: center;
    margin-bottom: 15px;
    color: #00AAAD;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.kustomer-description {
    padding: 0 30px;
    margin-bottom: 25px;
}

.kustomer-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 14px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.kustomer-description p strong {
    color: #00AAAD;
    font-weight: 700;
}

.kustomer-description p:last-child {
    margin-bottom: 0;
}

.kustomer-container {
    position: relative;
}

.kustomer-feedbacks {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0;
    padding: 20px 0;
}

.kustomer-feedback {
    padding: 20px 40px;
    cursor: pointer;
    transition: all .3s ease-out;
    align-items: center;
    display: flex;
    border-radius: 10px;
    margin: 0 20px;
    border: 1px solid transparent;
}

.kustomer-feedback:hover {
    background-color: rgba(0,170,173,.08);
    transform: translateX(5px);
    border-color: rgba(0,170,173,.2);
    box-shadow: 0 2px 8px rgba(0,170,173,.1);
}

.kustomer-feedback img {
    width: 25px;
    max-height: 25px;
    display: inline-block;
    margin-right: 15px;
}

.kustomer-feedback p {
    font-size: 16px;
    padding-left: 15px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.kustomer-form {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    transform: translateX(100%);
    transition: transform .3s ease-out;
    background-color: #fff;
}

.kustomer-form.is-open {
    transform: translateX(0);
}

.kustomer-back {
    height: 45px;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    transition: background-color .3s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.kustomer-back:hover {
    background-color: rgba(0,170,173,.05);
}

.kustomer-back img {
    max-height: 100%;
    width: 25px;
}

.kustomer-form h2 {
    width: 270px;
    margin: 0 auto;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #00AAAD;
}

.kustomer-form form {
    width: 270px;
    margin: 0 auto;
    text-align: right;
}

.kustomer-form textarea {
    color: #808080;
    width: 100%;
    resize: none;
    outline: none;
    border: 0;
    padding: 0 10px 0 0;
    background-color: transparent;
    overflow: hidden;
    border-bottom-style: solid;
    border-bottom-width: 3px;
    border-bottom-color: #00AAAD;
    margin-bottom: 30px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.kustomer-form textarea:focus {
    border-bottom-color: #006265;
}

.kustomer-form button {
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #00AAAD 0%, #006265 100%);
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,170,173,.3);
}

.kustomer-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,170,173,.4);
}

.kustomer-form button.is-loading {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .5;
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.kustomer-form button.is-loading::after {
    border-color: transparent transparent #fff #fff !important;
    left: calc(50% - (1em / 2));
    top: calc(50% - (1em / 2));
    position: absolute !important;
    animation: loading .5s infinite linear;
    border: 2px solid #dbdbdb;
    border-radius: 290486px;
    content: "";
    display: block;
    height: 1em;
    width: 1em;
}

/* Animations */
@keyframes spin {
    100% {
        transform: rotate(720deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-720deg);
    }
}

@keyframes loading {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .kustomer-popup {
        width: 90vw;
        max-width: 400px;
        right: 5vw;
    }
    
    .kustomer-description {
        padding: 0 20px;
    }
    
    .kustomer-description p {
        font-size: 12px;
    }
    
    .kustomer-feedback {
        margin: 0 15px;
        padding: 15px 30px;
    }
    
    .kustomer-form form {
        width: 90%;
    }
}
