/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #2C5F7C;
    --primary-navy: #1a4d6e;
    --accent-pink: #FF69B4;
    --accent-light-pink: #FFB6C1;
    --accent-purple: #9370DB;
    --accent-green: #90EE90;
    --accent-blue: #87CEEB;
    --accent-dark-blue: #4169E1;
    --accent-yellow: #FFD700;
    --accent-teal: #20B2AA;
    --badge-red: #ff4444;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header {
    background: linear-gradient(135deg, #1a4d6e 0%, #2C5F7C 50%, #20B2AA 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-spacer {
    flex: 1;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   MAIN CONTENT (80% LEFT)
   ============================================ */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Cards Row */
.cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Property Title Section */
.property-title-section {
    background: var(--bg-white);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.property-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.property-meta svg {
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--text-medium);
}

.case-ref,
.completion-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Completed Box */
.completed-box {
    background: var(--bg-white);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-green);
}

.completed-box h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.completed-box p {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.completion-date-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-teal);
}

/* Progress Dashboard */
.progress-dashboard {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 6px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    position: relative;
    overflow: visible;
}

.progress-circle {
    width: 100%;
    max-width: 2200px;
    height: auto;
    overflow: visible;
}

/* Segment progress visualization */
.segment-base {
    opacity: 1;
}

.segment-progress {
    opacity: 1;
    pointer-events: none;
}

.segment {
    cursor: pointer;
}

.segment text {
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    fill: white !important;
}

.badge-text {
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.center-icon {
    pointer-events: none;
}

/* Segment Tooltips */
.segment-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    max-width: 300px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.segment-tooltip.show {
    opacity: 1;
}

.segment:hover {
    opacity: 0.95;
}

/* Actions Header */
.actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

.actions-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.upload-btn-header {
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    margin-left: auto;
}

.upload-btn-header:hover {
    background: #7dd87d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Accordion Sections */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-section {
    background: var(--bg-white);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-section.active {
    border-color: var(--primary-teal);
    box-shadow: 0 4px 12px rgba(44, 95, 124, 0.15);
}

.accordion-section.scroll-active {
    border-color: var(--primary-teal);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    border-bottom: 1px solid transparent;
}

.accordion-section.active .accordion-header {
    background: #f8f9fa;
    border-bottom-color: var(--border-color);
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-section.active .accordion-header:hover {
    background: #f0f4f7;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f7;
    border-radius: 4px;
    color: var(--primary-teal);
    flex-shrink: 0;
    transition: var(--transition);
}

.accordion-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.accordion-section.active .accordion-icon {
    background: var(--primary-teal);
    color: white;
}

.accordion-title-group {
    flex: 1;
}

.accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.accordion-section.active .accordion-title {
    color: var(--primary-teal);
}

.outstanding-actions {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-count {
    background: var(--badge-red);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.accordion-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
    flex-shrink: 0;
    position: relative;
    font-size: 0;
}

.accordion-toggle::before {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: var(--transition);
    display: block;
}

.accordion-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

.accordion-section.active .accordion-toggle {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

.accordion-section.active .accordion-toggle::before {
    content: '−';
    font-size: 1.5rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 1.5rem;
}

.accordion-section.active .accordion-content {
    max-height: 2000px;
    padding: 1.5rem;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.question-item:hover {
    background: #f0f4f7;
    border-color: var(--border-color);
}

.question-item.completed {
    background: #f0f9f4;
    border-color: #d1fae5;
}

.question-item.completed label {
    text-decoration: line-through;
    color: var(--text-medium);
}

.question-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-teal);
}

.question-item label {
    flex: 1;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Evidence Upload Items */
.evidence-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Action Buttons Base Style */
.action-btn {
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Action Button Variants */
.action-btn-upload {
    background: var(--primary-teal);
    color: white;
}

.action-btn-upload:hover {
    background: var(--primary-navy);
}

.action-btn-signature {
    background: #9370DB;
    color: white;
}

.action-btn-signature:hover {
    background: #7a5cb8;
}

.action-btn-preview {
    background: #4682B4;
    color: white;
}

.action-btn-preview:hover {
    background: #3a6d9a;
}

.action-btn-form {
    background: var(--accent-green);
    color: white;
}

.action-btn-form:hover {
    background: #7dd87d;
}

.action-btn-link {
    background: #20B2AA;
    color: white;
}

.action-btn-link:hover {
    background: #1a9289;
}

.action-btn-download {
    background: #FFA500;
    color: white;
}

.action-btn-download:hover {
    background: #ff8c00;
}

/* Action Buttons Group for multiple buttons */
.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Status and Preview Badges */
.preview-badge,
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1rem;
}

.preview-badge {
    background: #E3F2FD;
    color: #1976D2;
    border: 1px solid #1976D2;
}

.status-badge.on-hold {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #856404;
}

.status-badge.action-required {
    background: #FFE0E0;
    color: #D32F2F;
    border: 1px solid #D32F2F;
}

/* Legacy support */
.upload-evidence-btn {
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1rem;
}

.upload-evidence-btn:hover {
    background: var(--primary-navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.upload-evidence-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   SIDEBAR (20% RIGHT)
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* position: sticky; */
    top: 100px;
    height: fit-content;
    overflow-x: hidden;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.upload-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.upload-btn:hover {
    background: #7dd87d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.conveyancer-section,
.notifications-section,
.latest-activity-section {
    background: var(--bg-white);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-btn-small {
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.help-btn-small:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.help-btn-small[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.help-btn-small[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10003;
}

.help-btn-small[data-tooltip]:hover::after,
.help-btn-small[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.conveyancer-profile {
    text-align: center;
}

.profile-image {
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-teal);
    box-shadow: 0 4px 12px rgba(44, 95, 124, 0.2);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.conveyancer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    transition: var(--transition);
}

.contact-item:hover {
    background: #e8e8e8;
    transform: translateX(2px);
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-teal);
    width: 20px;
    height: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    word-break: break-word;
    line-height: 1.4;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Keep email addresses on single line */
.contact-value[href^="mailto:"] {
    word-break: normal;
    overflow-wrap: normal;
    white-space: nowrap;
}

.contact-value:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

.rate-btn {
    width: 100%;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.rate-btn:hover {
    background: #7dd87d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.notification-badge {
    background: var(--badge-red);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.notifications-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-item span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Latest Activity Section */
.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-item:hover {
    background: #e8e8e8;
    transform: translateX(2px);
}

.activity-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-teal);
    width: 18px;
    height: 18px;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.notification-item:hover {
    background: #e8e8e8;
    transform: translateX(4px);
}

.notification-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-teal);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .sidebar {
        position: static;
        max-height: none;
        max-width: 100%;
    }

    .progress-circle {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .container {
        padding: 1rem;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }

    .property-title {
        font-size: 1.1rem;
    }

    .property-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .completed-box h2 {
        font-size: 1.1rem;
    }

    .completion-date-large {
        font-size: 1.1rem;
    }

    .progress-dashboard {
        padding: 1.5rem;
        min-height: 400px;
    }

    .progress-circle {
        max-width: 100%;
    }

    .segment-label {
        font-size: 10px;
    }

    .actions-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .actions-header h3 {
        font-size: 1.25rem;
    }

    .upload-btn-header {
        width: auto;
        margin-left: auto;
    }

    .accordion-header {
        padding: 1rem;
    }

    .accordion-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .progress-dashboard {
        min-height: 300px;
    }

    .segment-label {
        display: none;
    }

    .completed-box {
        padding: 1.5rem;
    }

    .completion-date-large {
        font-size: 1.5rem;
    }
}


/* ============================================
   RATING MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-light);
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
    z-index: 10;
}

.modal-close:hover {
    background: #e8e8e8;
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.modal-body {
    padding: 2rem;
}

.rating-section {
    margin-bottom: 2rem;
}

.rating-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
    color: #ddd;
}

.star:hover {
    transform: scale(1.1);
}

.star.active,
.star.hovered {
    color: #FFD700;
    fill: #FFD700;
}

.star svg {
    transition: var(--transition);
}

.rating-text {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    min-height: 1.5rem;
}

.feedback-section {
    margin-top: 2rem;
}

.feedback-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feedback-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    resize: vertical;
    transition: var(--transition);
    background: var(--bg-white);
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-submit {
    background: var(--accent-green);
    color: white;
}

.btn-submit:hover {
    background: #7dd87d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-white);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    color: var(--accent-green);
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        min-width: auto;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

