/* Modal Styles */

/* General Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.large-modal {
    z-index: 1001;
}

.modal-content {
    backdrop-filter: blur(20px);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 32px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    border-image: initial;
    border-radius: 15px;
    animation: 0.3s ease 0s 1 normal none running fadeIn;
    color: #e0e7ff;
}

.modal-content.large-modal {
    max-width: 920px;
    width: 95%;
}

.close {
    color: #e0e7ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: 10px;
    cursor: none;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #00d4ff;
}

/* Quantum Build Modal */
.quantum-build-modal {
    z-index: 1001;
}

.quantum-build-content {
    max-width: 50vw;
    min-width: 400px;
    max-height: 95vh;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 32px;
    animation: fadeIn 0.3s ease 0s 1 normal none running;
    color: #e0e7ff;
}

.quantum-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quantum-step-indicator .step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

.quantum-step-indicator .step.active {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    border-color: #00d4ff;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.quantum-step-indicator .step.completed {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border-color: #4ecdc4;
    color: #fff;
}

.quantum-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.quantum-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.quantum-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.quantum-card h3 {
    font-family: 'Fraunces', serif !important;
    color: #e0e7ff;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.quantum-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quantum-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.quantum-actions .quantum-next,
.quantum-actions .quantum-prev {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quantum-actions .quantum-next:hover,
.quantum-actions .quantum-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quantum-actions .btn-primary {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.quantum-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.quantum-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quantum-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Confirmation step */
.quantum-confirmation {
    text-align: center;
}

.quantum-confirmation p {
    color: #e0e7ff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quantum-livesupport {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.livesupport-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.livesupport-circle img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

/* Quantum Modal */
.quantum-modal-content {
    padding: 2rem;
    text-align: center;
    max-width: 800px;
}

.quantum-modal-content .form-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    max-width: 600px;
}

.quantum-modal-content .form-row .form-group {
    flex: 1;
    min-width: 0;
}



/* Placeholder font styling */
.quantum-modal-content input::placeholder,
.quantum-modal-content textarea::placeholder {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.9rem;
    color: rgba(224, 231, 255, 0.7);
}

/* Top-left label for primary request */
.quantum-modal-content .top-left-label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e0e7ff;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

/* Payment method section centering */
.quantum-modal-content .payment-group .payment-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantum-modal-content h2 {
    font-family: 'Fraunces', serif !important;
    color: #e0e7ff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Apparel Modal */
.apparel-modal {
    max-width: 500px;
    width: 90%;
}

.apparel-subtitle {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.image-sub-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.apparel-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.apparel-btn:hover {
    transform: scale(1.05);
}

/* File Modal */
.file-selection-container {
    padding: 2rem;
    text-align: center;
}

.file-selection-container p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.file-input-wrapper {
    margin-bottom: 2rem;
}

.file-input-label {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 3rem 2rem;
    cursor: none;
    transition: all 0.3s ease;
    color: #e0e7ff;
}

.file-input-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
}

.file-input-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.file-input-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-input-subtext {
    font-size: 0.9rem;
    color: #94a3b8;
}

.file-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.file-info span {
    font-size: 0.9rem;
}

/* Video Modal */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 2rem 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(-40px);
}

/* Embed Container */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 2rem 0;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Schedule Modal */
#scheduleModal .modal-content {
    height: 500px;
    max-width: 650px;
}

#scheduleFrame {
    transform: scale(0.78);
    transform-origin: top center;
    margin: 0 auto;
    display: block;
}

/* Q-Map Modal */
.map-container {
    margin: 2rem 0;
    height: 300px;
}

.map-split {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.map-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.map-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #e0e7ff;
    padding: 1rem;
    z-index: 1000;
}

.address-text {
    font-size: 0.9rem;
}

.map {
    height: 300px;
    width: 100%;
}

/* Team Modal Styles */
.team-modal-content {
    padding: 1rem 2rem 2rem 2rem;
    min-height: 600px; /* Match height of other video modals */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.team-modal-content h2 {
    font-family: 'Fraunces', serif !important;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.team-sub-container {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transform: translateY(-20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.team-tab-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.team-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    z-index: -1;
}

.team-tab-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.team-tab-btn .tab-label {
    text-align: center;
    width: 100%;
    display: block;
    font-family: 'Lato', sans-serif;
}

.team-tab-btn.active .tab-label {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-family: 'Lato', sans-serif;
}

.team-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
}

.team-content-container {
    display: flex;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.team-image-container {
    position: relative;
    width: 320px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(9, 4, 4, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 212, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 25px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2), rgba(255, 215, 0, 0.2));
    backdrop-filter: blur(10px);
}

.team-member-card.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.team-member-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
    border-radius: 25px;
}

.team-member-card:hover .team-member-overlay {
    opacity: 1;
    visibility: visible;
}

.team-member-card:hover .team-member-image {
    filter: brightness(0.7);
}

.see-more-link {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-family: 'Lato', sans-serif;
}

.see-more-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.team-role-container {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    min-width: 0;
}

.team-role-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 0;
}

.team-role-content.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.role-title {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e7ff;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.role-pill {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    color: #ffffff;
    font-weight: 600;
    animation: gradientShift 3s ease infinite;
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.role-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.team-role-content:hover .role-hover-text {
    opacity: 1;
}

.see-more-link {
    position: relative;
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.see-more-link::after {
    content: ' 🔗';
    font-size: 0.8rem;
}

.see-more-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Learning Center Video Modal Styles */
#quantumVideoModalContent,
#agenticModalContent,
#cloudModalContent,
#qgisModalContent,
#explainerVideoModalContent,
#quantumDemoModalContent {
    margin: 2vh 0;
    min-height: 600px;
    max-height: 90vh;
}

/* Quantum Demo Modal */
#quantum-demoModal .modal-content {
    min-height: 200px;
    max-height: 90vh;
}

#quantumVideoModalContent h2,
#agenticModalContent h2,
#cloudModalContent h2,
#qgisModalContent h2,
#explainerModalContent h2 {
    font-family: 'Fraunces', serif;
    color: #e0e7ff;
    margin-bottom: 1rem;
}

/* Responsive adjustments for team modal */
@media (max-width: 1024px) {
    .team-sub-container {
        flex-direction: column;
        gap: 1rem;
        min-width: 0;
    }

    .team-tab-menu {
        flex-direction: row;
        overflow-x: auto;
        min-width: unset;
        padding-bottom: 0.5rem;
    }

    .team-tab-btn {
        flex-shrink: 0;
        min-width: 150px;
    }

    .team-content-container {
        flex-direction: column;
        gap: 1rem;
        min-width: 0;
    }

    .team-image-container {
        width: 100%;
        height: 300px;
    }

    .team-role-container {
        min-height: 200px;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .team-modal-content {
        padding: 1rem;
        min-height: 500px;
    }

    .team-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .tab-label {
        font-size: 0.85rem;
    }

    .role-title {
        font-size: 1rem;
        line-height: 1.5;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .role-pill {
        font-size: 0.9rem;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }
}

/* Email Interest Modal Styles - System Matching */
#email-interest-modal .modal-content {
    padding: 0;
    max-width: 600px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    color: #fff;
}

/* Modal Header - Email Interest Modal */
#email-interest-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0;
}

#email-interest-modal .modal-header h2 {
    font-family: 'Fraunces', serif !important;
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Compose Header - Email Fields */
#email-interest-modal .compose-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#email-interest-modal .compose-field {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#email-interest-modal .compose-field:last-child {
    border-bottom: none;
}

#email-interest-modal .compose-field label {
    min-width: 60px;
    font-weight: 600;
    color: #e0e7ff;
    font-size: 0.9rem;
    margin-right: 1rem;
    font-family: 'Lato', sans-serif;
}

#email-interest-modal .compose-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    padding: 0.25rem 0;
    cursor: text;
}

#email-interest-modal .compose-field input[readonly] {
    color: #ccc;
    cursor: default;
}

#email-interest-modal .compose-field input:focus {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Compose Body - Message Area */
#email-interest-modal .compose-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

#email-interest-modal .message-field {
    flex: 1;
    position: relative;
    padding: 1rem 1.5rem;
}

#email-interest-modal .message-field textarea {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: 'Lato', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 1rem 0.5rem 2rem 0.5rem; /* Top/left padding for text, bottom for char count */
    cursor: text;
}

#email-interest-modal .message-field textarea::placeholder {
    color: rgba(224, 231, 255, 0.6);
    font-style: normal;
}

#email-interest-modal .message-field textarea:focus {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    outline: none;
}

/* Character Count */
#email-interest-modal #char-count {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Compose Footer - Action Buttons */
#email-interest-modal .compose-footer {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

#email-interest-modal #couple-more-details-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    overflow: hidden;
    position: relative;
    font-family: 'Roboto', sans-serif;
    animation: shine 1.5s ease-in-out infinite;
}

#email-interest-modal #couple-more-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

#email-interest-modal #couple-more-details-btn:hover::before {
    left: 100%;
}

#email-interest-modal #couple-more-details-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

#email-interest-modal #couple-more-details-btn:active {
    transform: scale(1.02);
}

/* Mini Details Modal Styles - System Matching */
.mini-details-modal-content {
    padding: 0;
    max-width: 450px;
    min-height: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    color: #fff;
}

.mini-details-modal-content h3 {
    font-family: 'Fraunces', serif !important;
    color: #fff;
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 16px 16px 0 0;
}

.mini-details-modal-content .form-group {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-details-modal-content .form-group:last-child {
    border-bottom: none;
}

.mini-details-modal-content .form-group label {
    display: block;
    color: #e0e7ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

.mini-details-modal-content .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.2s ease;
}

.mini-details-modal-content .form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.button-group {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

.button-group button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.button-group button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s;
}

#send-it-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    color: white;
    animation: gradientShift 3s ease infinite;
}

#send-it-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

#send-it-btn:hover::before {
    left: 100%;
}

#send-it-btn:active {
    transform: translateY(0);
}

#changed-mind-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#changed-mind-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#changed-mind-btn:hover::before {
    left: 100%;
}

#changed-mind-btn:active {
    transform: translateY(0);
}

/* Photo Modal Styles */
.photo-modal-container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.photo-modal-container h2 {
    font-family: 'Fraunces', serif !important;
    color: #e0e7ff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
}

.camera-placeholder {
    color: #e0e7ff;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    padding: 2rem;
}

.camera-placeholder .camera-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.photo-video, .photo-canvas {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.photo-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.photo-controls button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.photo-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.photo-controls button:hover::before {
    left: 100%;
}

.photo-controls button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.photo-controls button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Audio Modal Styles */
.audio-modal-container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.audio-modal-container h2 {
    font-family: 'Fraunces', serif !important;
    color: #e0e7ff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.audio-recorder {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
}

.recording-status {
    margin-bottom: 1.5rem;
}

.recording-status .status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.recording-status p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e0e7ff;
    margin: 0;
}

.audio-waveform {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wave-bars {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 80px;
    gap: 3px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    border-radius: 3px;
    transition: height 0.15s ease;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.recording-timer {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    font-family: 'Lato', sans-serif;
}

.audio-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.audio-controls button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.audio-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.audio-controls button:hover::before {
    left: 100%;
}

.audio-controls button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.audio-controls button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Video Modal Styles */
.video-modal-container {
    text-align: center;
    padding: 2rem;
    max-width: 550px;
    margin: 0 auto;
}

.video-modal-container h2 {
    font-family: 'Fraunces', serif !important;
    color: #e0e7ff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.video-recorder {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
}

.video-placeholder {
    color: #e0e7ff;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    padding: 2rem;
}

.video-placeholder .video-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.video-record-video {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.video-controls button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.video-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.video-controls button:hover::before {
    left: 100%;
}

.video-controls button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.video-controls button:active {
    transform: translateY(-1px) scale(1.02);
}

.video-recording-timer {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    font-family: 'Lato', sans-serif;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: inline-block;
}

/* Emoji Modal Styles */
.emoji-modal-container {
    padding: 1.5rem;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 1.5rem;
    align-items: flex-start;
}

#emojiModal .modal-content {
    min-height: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.emoji-modal-container h2 {
    font-family: 'Fraunces', serif !important;
    color: #e0e7ff;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.emoji-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    width: 120px;
    height: 280px;
    overflow-y: auto;
}

.emoji-category {
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    opacity: 0.7;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-category.active {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
    border-color: rgba(0, 212, 255, 0.5);
}

.emoji-category:hover:not(.active) {
    opacity: 0.9;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: transparent;
}

.emoji-category::after {
    content: attr(data-category);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    margin-top: 0.25rem;
    text-transform: capitalize;
}

.emoji-category:hover::after {
    opacity: 1;
    visibility: visible;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    height: 280px;
    overflow-y: auto;
    padding: 1rem 1rem 1rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    flex: 1;
}

.emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 16px 16px 0;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    border-radius: 0 16px 16px 0;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    text-align: center;
    opacity: 0.7;
    min-height: 3rem;
}

.emoji-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.4s;
}

.emoji-item:hover::before {
    left: 100%;
}

.emoji-item:hover {
    opacity: 0.9;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.emoji-item:active {
    transform: scale(1.2) rotate(2deg);
}

/* Custom Alert Modal Styles */
.custom-alert-modal-content {
    padding: 0;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    color: #fff;
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0;
}

.alert-header h3 {
    font-family: 'Fraunces', serif !important;
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.alert-body {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    flex: 1;
}

.alert-body p {
    color: #e0e7ff;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

.alert-footer {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

#alert-ok-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    background-size: 400% 400%;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    overflow: hidden;
    position: relative;
    font-family: 'Roboto', sans-serif;
    animation: gradientShift 3s ease infinite;
}

#alert-ok-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

#alert-ok-btn:hover::before {
    left: 100%;
}

#alert-ok-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

#alert-ok-btn:active {
    transform: scale(1.02);
}

#email-interest-modal #email-validation-status {
    margin-left: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

#email-interest-modal #email-validation-status.valid {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.4);
}

#email-interest-modal #email-validation-status.invalid {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

#mini-details-modal #country-suggestion {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Country suggestion states */
#mini-details-modal #country-suggestion.typing {
    background: rgba(233, 214, 107, 0.2);
    color: #E9D66B;
    border-color: rgba(233, 214, 107, 0.3);
}

#mini-details-modal #country-suggestion.incorrect,
#mini-details-modal #country-suggestion.corrected {
    background: rgba(196, 98, 16, 0.2);
    color: #C46210;
    border-color: rgba(196, 98, 16, 0.3);
}

#mini-details-modal #country-suggestion.correct {
    background: rgba(132, 222, 2, 0.2);
    color: #84DE02;
    border-color: rgba(132, 222, 2, 0.3);
}

/* Responsive improvements for email interest modals */
@media (max-width: 768px) {
    .email-interest-modal-content {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 4rem);
        margin: 1rem;
    }

    .mini-details-modal-content {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 4rem);
        margin: 1rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .mini-details-modal-content h3 {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .compose-field {
        padding: 0.5rem 1rem;
    }

    .compose-field label {
        font-size: 0.85rem;
        min-width: 50px;
    }

    .compose-field input {
        font-size: 0.9rem;
    }

    .message-field {
        padding: 0.75rem 1rem;
    }

    .message-field textarea {
        min-height: 150px;
        font-size: 0.9rem;
    }

    #char-count {
        bottom: 0.75rem;
        right: 1rem;
        font-size: 0.7rem;
    }

    .compose-footer {
        padding: 0.75rem 1rem;
    }

    #couple-more-details-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .mini-details-modal-content .form-group {
        padding: 0.75rem 1rem;
    }

    .button-group {
        padding: 1rem;
        gap: 0.75rem;
    }

    .button-group button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .email-interest-modal-content,
    .mini-details-modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 2rem);
    }

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

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .compose-field {
        padding: 0.4rem 0.75rem;
    }

    .message-field {
        padding: 0.5rem 0.75rem;
    }

    .compose-footer,
    .button-group {
        padding: 0.75rem;
    }

    #couple-more-details-btn,
    .button-group button {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Video Modal Responsive */
@media (max-width: 768px) {
    #quantumVideoModalContent,
    #agenticModalContent,
    #cloudModalContent,
    #qgisModalContent,
    #explainerVideoModalContent,
    #quantumDemoModalContent {
        min-height: 400px;
        max-height: 80vh;
        margin: 1vh 0;
    }

    .modal-content.large-modal {
        width: 98%;
        padding: 1rem;
    }

    .video-container {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    #quantumVideoModalContent,
    #agenticModalContent,
    #cloudModalContent,
    #qgisModalContent,
    #explainerVideoModalContent,
    #quantumDemoModalContent {
        min-height: 300px;
        max-height: 70vh;
        margin: 0.5vh 0;
    }

    .modal-content.large-modal {
        width: 100%;
        padding: 0.5rem;
    }

    .video-container {
        margin: 0.5rem 0;
    }
}

/* Quantum Build Modal Responsive */
@media (max-width: 768px) {
    .quantum-build-content {
        max-width: 90vw;
        min-width: 320px;
        padding: 1.5rem;
    }

    .quantum-step-indicator {
        gap: 0.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .quantum-step-indicator .step {
        min-width: 70px;
        height: 35px;
        font-size: 0.7rem;
        padding: 0 8px;
    }

    .quantum-card {
        padding: 1.5rem;
    }

    .quantum-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .quantum-actions {
        gap: 0.75rem;
    }

    .quantum-actions button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .livesupport-circle {
        width: 100px;
        height: 100px;
    }

    .livesupport-circle img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .quantum-build-content {
        max-width: 95vw;
        padding: 1rem;
    }

    .quantum-step-indicator {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .quantum-step-indicator .step {
        min-width: 60px;
        height: 30px;
        font-size: 0.6rem;
        padding: 0 6px;
    }

    .quantum-card {
        padding: 1rem;
    }

    .quantum-card h3 {
        font-size: 1.1rem;
    }

    .quantum-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quantum-actions button {
        width: 100%;
        min-width: unset;
    }

    .quantum-confirmation p {
        font-size: 1rem;
    }

    .livesupport-circle {
        width: 80px;
        height: 80px;
    }

    .livesupport-circle img {
        width: 60px;
        height: 60px;
    }
}
