/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DIRANX REVIEW WIDGET STYLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━ FLOATING ACTION BUTTON ━━━ */
.diranx-review-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    
    background: var(--navy, #02213D);
    color: var(--white, #fff);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    
    border: none;
    border-radius: 40px;
    box-shadow: 0 8px 16px rgba(2, 33, 61, 0.25);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.diranx-review-fab:hover {
    background: var(--navy-700, #1B3750);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(2, 33, 61, 0.3);
}

.diranx-review-fab:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
    .diranx-review-fab {
        bottom: 24px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
        width: 54px;
        height: 54px;
        justify-content: center;
    }
    
    .diranx-review-fab-text {
        display: none;
    }
}

/* ━━━ REVIEW MODAL ━━━ */
.diranx-review-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: diranxReviewFadeIn 0.2s ease;
}

@keyframes diranxReviewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.diranx-review-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: diranxReviewSlideUp 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes diranxReviewSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.diranx-review-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.diranx-review-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.diranx-review-header {
    text-align: center;
    margin-bottom: 24px;
}

.diranx-review-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy, #02213D);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diranx-review-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
}

.diranx-review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diranx-review-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: -6px;
}

.diranx-review-input, .diranx-review-textarea {
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.diranx-review-textarea {
    resize: vertical;
}

.diranx-review-input:focus, .diranx-review-textarea:focus {
    border-color: var(--sage, #94B694);
    box-shadow: 0 0 0 3px rgba(148, 182, 148, 0.2);
}

.diranx-review-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 8px;
}

.diranx-review-star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
    padding: 0;
}

.diranx-review-star-btn:hover {
    transform: scale(1.1);
}

.diranx-review-star-active {
    color: #FBBF24;
}

.diranx-review-error {
    font-size: 0.78rem;
    color: #ef4444;
    padding: 6px 10px;
    background: #fef2f2;
    border-radius: 6px;
    text-align: center;
}

.diranx-review-submit-btn {
    padding: 12px;
    background: var(--navy, #02213D);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    font-family: inherit;
}

.diranx-review-submit-btn:hover:not(:disabled) {
    background: var(--navy-700, #1B3750);
}

.diranx-review-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.diranx-review-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    text-align: center;
}

.diranx-review-success-icon {
    width: 48px;
    height: 48px;
    background: var(--sage, #94B694);
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 16px;
    animation: diranxReviewScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes diranxReviewScaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}


/* ━━━ REVIEWS CAROUSEL ━━━ */
.diranx-reviews-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.diranx-reviews-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.diranx-reviews-subtitle {
    text-align: center;
    color: var(--navy-500);
    font-weight: 300;
    margin-bottom: 30px;
}

.diranx-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.diranx-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.diranx-carousel-card {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(223, 233, 223, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.diranx-carousel-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.diranx-carousel-star-filled {
    color: #FBBF24;
}

.diranx-carousel-star-empty {
    color: #e5e7eb;
}

.diranx-carousel-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--navy-700);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    max-width: 90%;
}

.diranx-carousel-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.diranx-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.diranx-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.diranx-carousel-dot-active {
    background: var(--navy);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .diranx-carousel-card {
        padding: 24px;
    }
    
    .diranx-carousel-text {
        font-size: 1rem;
        max-width: 100%;
    }
}
