/* LawGlitch Professional Onboarding Styles */
/* Main stylesheet for the onboarding form */

/* CSS Variables */
:root {
    --cream: #fdfaf5;
    --gold: #d4af37;
    --black: #0a0a0a;
    --royal-blue: #1a237e;
    --light-gray: #f0f0f0;
    --dark-gray: #333;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.7);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--royal-blue);
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
}

.text-center { text-align: center; }

/* --- Loading Overlay --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f4eb 0%, #d4af37 50%, #1a237e 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Auth Section --- */
.auth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f4eb 0%, #d4af37 50%, #1a237e 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-container h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    color: white;
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.google-btn {
    background: var(--royal-blue);
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.google-btn:hover {
    background: var(--gold);
    color: var(--royal-blue);
    border-color: var(--royal-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--gold-glow);
}

.google-btn i {
    font-size: 1.3rem;
}

/* --- 1. Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f4eb 0%, #d4af37 50%, #1a237e 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    color: white;
    text-align: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(26, 35, 126, 0.1) 0%, transparent 50%);
    animation: pulseGradient 8s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    animation: floatIcon 20s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.floating-icon:nth-child(5) {
    top: 40%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    25% { transform: translateY(-30px) rotate(10deg); opacity: 0.2; }
    50% { transform: translateY(-60px) rotate(-10deg); opacity: 0.15; }
    75% { transform: translateY(-30px) rotate(5deg); opacity: 0.2; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-align: center;
}

.text-highlight {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--royal-blue);
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 600;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    background-color: var(--gold);
    color: var(--royal-blue);
    border-color: var(--royal-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--gold-glow);
}

.hero .btn {
    background-color: var(--royal-blue);
    color: var(--gold);
    border-color: var(--gold);
    font-weight: 600;
    padding: 15px 40px;
    font-size: 1.1rem;
    margin: 0 auto;
    display: block;
    max-width: 300px;
}

.hero .btn:hover {
    background-color: var(--gold);
    color: var(--royal-blue);
    border-color: var(--royal-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--gold-glow);
}

/* Floating Profile Cards */
.floating-card {
    position: absolute;
    z-index: 5;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(4deg); }
}

.profile-card {
    top: 15%;
    left: 5%;
    width: 220px;
    animation-delay: 0s;
}
.profile-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.profile-card .avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--light-gray); display: flex; align-items: center; justify-content: center; color: var(--royal-blue); font-size: 1.5rem; }
.profile-card .name { font-weight: 600; font-size: 1rem; color: #fff; }
.profile-card .profession { font-size: 0.8rem; color: #ddd; }
.profile-card-stats { display: flex; justify-content: space-between; font-size: 0.8rem; color: #fff; text-align: center; }
.profile-card-stats .stat-item span { display: block; font-weight: 600; font-size: 1rem; color: var(--gold);}

.verification-card {
    bottom: 15%;
    right: 5%;
    width: 220px;
    text-align: center;
    animation-delay: 2s;
}
.verification-card .icon { font-size: 3rem; color: var(--gold); }
.verification-card h4 { color: #fff; margin: 5px 0; }
.verification-card p { font-size: 0.8rem; color: #ddd; margin: 0; }

/* --- 2. Beliefs Section --- */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.belief-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.belief-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--gold);
}
.belief-card .icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}
.belief-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.belief-card p { font-size: 0.9rem; color: #666; }

/* --- 3. Q&A Chat Section --- */
.chat-animation-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
}
.chat-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-height: 200px;
}
.chat-bubble {
    max-width: 85%;
    padding: 16px 22px;
    margin-bottom: 20px;
    border-radius: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}
.chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}
.professional-msg {
    background: linear-gradient(135deg, var(--royal-blue), #4752c4);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
}
.user-reply {
    background: #f0f0f0;
    color: #2c3e50;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: white;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: white; }
}

/* --- 4. Form Sections --- */
#signup-form {
    background: #fff;
}
.form-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.form-section h2 {
     margin-bottom: 30px;
     font-size: 2rem;
}
.form-container {
    max-width: 900px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}
.form-group label i {
    color: var(--gold);
    margin-right: 5px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}
.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}
.feedback-text {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.feedback-text.success {
    color: #28a745;
}
.feedback-text.error {
    color: #dc3545;
}
.file-upload-wrapper {
    position: relative;
}
.file-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
    pointer-events: none;
}
.file-upload-wrapper:hover .file-upload-label {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}
.file-upload-label i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.file-upload-label span {
    font-weight: 500;
    color: var(--dark-gray);
}
.file-upload-label small {
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}
.form-actions {
    margin-top: 40px;
    text-align: center;
}
.submit-btn {
    background: var(--gold);
    color: var(--black);
    font-size: 1.2rem;
    padding: 15px 50px;
    border: none;
    cursor: pointer;
}
.submit-btn:hover {
    box-shadow: var(--gold-glow);
    transform: scale(1.05);
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-container input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
}

/* Free minutes note */
.free-minutes-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.free-minutes-note .fas {
    font-size: 2rem;
    color: var(--gold);
}

.free-minutes-note p {
    margin: 0;
    font-weight: 500;
    color: var(--dark-gray);
}

/* --- 6. Launch Benefits Section --- */
.benefits-section {
    background-color: var(--dark-gray);
    color: white;
}
.benefits-section h2 {
    color: var(--gold);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}
.benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}
.benefit-card .benefit-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.benefit-card h3 {
    color: #fff;
    margin-bottom: 15px;
}
.benefit-card p {
    color: #ccc;
}

/* --- 7. Pricing Section --- */
.pricing-section {
    background-color: #fff;
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
}

.pricing-card input[type="radio"] {
    display: none;
}

.pricing-label {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.pricing-card:hover .pricing-label {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.pricing-card input:checked + .pricing-label {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: scale(1.02);
}

.pricing-header {
    text-align: center;
    margin-bottom: 25px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--royal-blue);
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 10px 0;
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.features-list {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
    flex: 1;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list .fa-check {
    color: #4CAF50;
    margin-top: 3px;
}

.features-list .fa-check-double {
    color: var(--gold);
    margin-top: 3px;
}

.platform-fee-note {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.platform-fee-note.premium {
    background-color: rgba(212, 175, 55, 0.1);
}

.premium-plan .pro-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Enterprise Contact Form */
.contact-us-container {
    margin-top: 20px;
}

.contact-btn {
    width: 100%;
    padding: 12px;
    background: var(--royal-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.contact-btn i {
    font-size: 1.2rem;
}

.contact-form {
    margin-top: 15px;
}

.contact-form .contact-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    height: 100px;
    resize: vertical;
    transition: var(--transition);
}

.contact-form .contact-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* Responsive pricing grid */
@media (max-width: 1200px) {
    .pricing-grid {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .enterprise-plan {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 25px;
    }
    .enterprise-plan {
        grid-column: auto;
    }
    .pricing-label {
        padding: 25px;
    }
}

/* --- 10. Submit Section --- */
.submit-section {
    padding: 60px 0;
    background: #fff;
}
.submit-btn {
    background: var(--gold);
    color: var(--black);
    font-size: 1.2rem;
    padding: 15px 50px;
}
.submit-btn:hover {
    box-shadow: var(--gold-glow);
    transform: scale(1.05);
}
.submit-section p {
    margin-top: 20px;
    color: #555;
}

/* --- 11. Footer --- */
.footer {
    background: var(--black);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer {
    background: var(--black);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Terms & Conditions Styles */
.accept-terms {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-link {
    color: var(--royal-blue);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.terms-link:hover {
    color: var(--gold);
}

.terms-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.terms-content {
    padding: 20px 0;
}

.terms-content h3 {
    color: var(--black);
    margin-bottom: 20px;
}

.terms-content h4 {
    color: var(--black);
    margin: 20px 0 10px;
}

.terms-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.accept-terms-container {
    margin-top: 20px;
    text-align: center;
}

.accept-terms-btn {
    min-width: 200px;
}

/* Success Modal Styles */
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal {
    text-align: center;
    max-width: 500px;
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-modal h2 {
    color: var(--royal-blue);
    margin-bottom: 15px;
}

.success-modal p {
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Terms & Conditions Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--gold);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.modal h2 {
    color: var(--royal-blue);
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.2rem;
}

.modal h3 {
    color: var(--gold);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal h4 {
    color: var(--royal-blue);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.modal-content div {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
    line-height: 1.7;
}

.modal-content div::-webkit-scrollbar {
    width: 8px;
}

.modal-content div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content div::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.modal-content div::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

.modal ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal li {
    margin-bottom: 8px;
}

.terms-link {
    color: var(--royal-blue);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.terms-link:hover {
    color: var(--gold);
}

.accept-terms-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.accept-terms-btn {
    background: var(--gold);
    color: var(--black);
    font-size: 1.1rem;
    padding: 12px 40px;
}
/* --- Enhanced Mobile Responsiveness --- */
@media (max-width: 992px) {
    /* Hide original floating cards to prevent layout issues */
    .floating-card {
        display: none;
    }
    
    /* Create miniature floating cards using pseudo-elements */
    .hero-content::before {
        content: '';
        position: absolute;
        top: -80px;
        right: 15px;
        width: 120px;
        height: 80px;
        background: rgba(255, 255, 255, 0.15);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
        animation: miniCardFloat1 8s ease-in-out infinite;
        z-index: 5;
        background-image: 
            radial-gradient(circle at 20px 20px, rgba(212, 175, 55, 0.8) 8px, transparent 8px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.9) 35px, transparent 35px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.7) 50px, transparent 50px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.5) 65px, transparent 65px);
        background-size: 40px 40px, 120px 8px, 120px 6px, 120px 6px;
        background-position: 8px 8px, 45px 15px, 45px 25px, 45px 35px;
        background-repeat: no-repeat;
    }
    
    .hero-content::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: 15px;
        width: 120px;
        height: 80px;
        background: rgba(255, 255, 255, 0.15);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
        animation: miniCardFloat2 10s ease-in-out infinite reverse;
        z-index: 5;
        background-image: 
            radial-gradient(circle at 60px 25px, rgba(212, 175, 55, 0.9) 12px, transparent 12px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.8) 80px, transparent 80px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.6) 60px, transparent 60px);
        background-size: 120px 50px, 120px 10px, 120px 8px;
        background-position: center 10px, center 45px, center 58px;
        background-repeat: no-repeat;
    }
    
    @keyframes miniCardFloat1 {
        0%, 100% { 
            transform: translateY(0) rotate(0deg);
            opacity: 0.8;
        }
        50% { 
            transform: translateY(-15px) rotate(2deg);
            opacity: 1;
        }
    }
    
    @keyframes miniCardFloat2 {
        0%, 100% { 
            transform: translateY(0) rotate(0deg);
            opacity: 0.8;
        }
        50% { 
            transform: translateY(15px) rotate(-2deg);
            opacity: 1;
        }
    }
    
    /* Enhanced floating background elements */
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.08) 0%, transparent 35%),
            radial-gradient(circle at 85% 75%, rgba(26, 35, 126, 0.08) 0%, transparent 35%),
            radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
            radial-gradient(circle at 30% 90%, rgba(212, 175, 55, 0.06) 0%, transparent 30%);
        animation: floatingOrbs 12s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }
    
    @keyframes floatingOrbs {
        0%, 100% { 
            transform: scale(1) translate(0, 0);
            opacity: 0.6;
        }
        33% { 
            transform: scale(1.1) translate(10px, -15px);
            opacity: 0.8;
        }
        66% { 
            transform: scale(0.95) translate(-8px, 12px);
            opacity: 0.7;
        }
    }
}

@media (max-width: 768px) {
    /* Optimize hero section for tablets and large phones */
    h2 { 
        font-size: 2rem; 
    }
    
    section { 
        padding: 60px 0; 
    }
    
    .hero {
        min-height: 100vh;
        padding: 20px 0;
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .hero-content {
        position: relative;
        z-index: 10;
        padding: 60px 20px;
        margin: auto;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    .hero .btn {
        padding: 14px 35px;
        font-size: 1rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Floating cards responsive */
    .floating-card {
        width: 150px;
        opacity: 0.8;
    }
    
    .profile-card { 
        top: 8%; 
        left: 2%; 
    }
    
    .verification-card { 
        bottom: 8%; 
        right: 2%; 
    }
    
    /* Adjust miniature cards for tablet */
    .hero-content::before {
        top: -70px;
        right: 10px;
        width: 100px;
        height: 70px;
        background-size: 35px 35px, 100px 7px, 100px 5px, 100px 5px;
        background-position: 6px 6px, 38px 12px, 38px 20px, 38px 28px;
    }
    
    .hero-content::after {
        bottom: -70px;
        left: 10px;
        width: 100px;
        height: 70px;
        background-size: 100px 45px, 100px 8px, 100px 6px;
        background-position: center 8px, center 38px, center 50px;
    }
    
    /* Enhanced floating background elements */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.04) 50%, transparent 60%),
            linear-gradient(-45deg, transparent 40%, rgba(26, 35, 126, 0.04) 50%, transparent 60%),
            radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(26, 35, 126, 0.06) 0%, transparent 40%);
        background-size: 80px 80px, 80px 80px, 300px 300px, 300px 300px;
        animation: backgroundFlow 15s linear infinite;
        pointer-events: none;
        z-index: 2;
    }
    
    @keyframes backgroundFlow {
        0% { 
            background-position: 0 0, 0 0, 0 0, 0 0;
        }
        100% { 
            background-position: 80px 80px, -80px 80px, 50px 50px, -50px -50px;
        }
    }
    
    .beliefs-grid { 
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    
    .belief-card { 
        aspect-ratio: auto;
        padding: 25px;
    }
    
    .free-minutes-note {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin: 25px 10px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 450px;
    }
    
    .pricing-card input:checked + .pricing-label {
        transform: scale(1);
    }
    
    .pricing-card:hover .pricing-label {
        transform: translateY(-5px);
    }
    
    .chat-animation-section {
        padding: 40px 15px;
    }
    
    .chat-container {
        padding: 25px 20px;
        margin: 0;
        border-radius: 15px;
        min-height: 180px;
    }
    
    .chat-bubble {
        max-width: 92%;
        padding: 14px 18px;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px 25px;
        max-width: calc(100vw - 40px);
    }
    
    .auth-card {
        padding: 40px 30px;
    }
    
    .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .auth-card h1 {
        font-size: 1.8rem;
    }
    
    .google-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Optimizations for small phones */
    .container {
        width: 95%;
    }
    
    .hero {
        min-height: 100vh;
        padding: 15px 0;
    }
    
    .hero-content {
        padding: 50px 15px;
    }
    
    .hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 30px;
        padding: 0 5px;
    }
    
    .hero .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        max-width: 250px;
    }
    
    /* Smaller miniature cards for phones */
    .hero-content::before {
        top: -50px;
        right: 8px;
        width: 80px;
        height: 55px;
        background-size: 28px 28px, 80px 5px, 80px 4px, 80px 4px;
        background-position: 5px 5px, 30px 10px, 30px 16px, 30px 22px;
        border-radius: 6px;
        animation: miniCardFloat1 6s ease-in-out infinite;
    }
    
    .hero-content::after {
        bottom: -50px;
        left: 8px;
        width: 80px;
        height: 55px;
        background-size: 80px 35px, 80px 6px, 80px 5px;
        background-position: center 6px, center 30px, center 40px;
        border-radius: 6px;
        animation: miniCardFloat2 7s ease-in-out infinite reverse;
    }
    
    /* Subtle particle system for small screens */
    .hero::after {
        background: 
            radial-gradient(circle at 25% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 25%),
            radial-gradient(circle at 75% 80%, rgba(26, 35, 126, 0.06) 0%, transparent 25%),
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
        animation: subtleFloat 10s ease-in-out infinite;
    }
    
    @keyframes subtleFloat {
        0%, 100% { 
            transform: scale(1);
            opacity: 0.5;
        }
        50% { 
            transform: scale(1.05);
            opacity: 0.8;
        }
    }
    
    /* Optimize other sections for small screens */
    section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .belief-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .benefit-card {
        padding: 25px 20px;
    }
    
    .free-minutes-note {
        padding: 20px 15px;
        margin: 20px 5px;
        border-radius: 8px;
    }
    
    .free-minutes-note .fas {
        font-size: 1.5rem;
    }
    
    .chat-container {
        padding: 25px 20px;
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .form-section {
        padding: 50px 0;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 12px 40px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 10px;
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .modal h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 35px 25px;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .auth-card h1 {
        font-size: 1.6rem;
    }
    
    .auth-subtitle {
        font-size: 0.95rem;
    }
    
    .google-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .pricing-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .pricing-card h3 {
        font-size: 1.5rem;
    }
    
    .pricing-amount {
        font-size: 1.7rem;
    }
}

@media (max-width: 374px) {
    /* Extra small screens adjustments */
    .hero h1 {
        font-size: clamp(1.4rem, 9vw, 2rem);
    }
    
    .hero p {
        font-size: clamp(0.85rem, 4vw, 0.95rem);
    }
    
    .hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        max-width: 220px;
    }
    
    .hero-content {
        padding: 40px 15px;
    }
    
    /* Ultra-compact miniature cards */
    .hero-content::before {
        top: -40px;
        right: 5px;
        width: 65px;
        height: 45px;
        background-size: 22px 22px, 65px 4px, 65px 3px, 65px 3px;
        background-position: 4px 4px, 24px 8px, 24px 13px, 24px 18px;
    }
    
    .hero-content::after {
        bottom: -40px;
        left: 5px;
        width: 65px;
        height: 45px;
        background-size: 65px 28px, 65px 5px, 65px 4px;
        background-position: center 5px, center 25px, center 33px;
    }
    
    .container {
        width: 98%;
    }
    
    .free-minutes-note {
        margin: 15px 2px;
        padding: 15px 12px;
    }
    
    .modal-content {
        margin: 5px;
        padding: 20px 15px;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 10px 0;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .hero h1 {
        margin-bottom: 10px;
    }
    
    .hero p {
        margin-bottom: 20px;
    }
    
    /* Hide miniature cards in landscape to save vertical space */
    .hero-content::before,
    .hero-content::after {
        display: none;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before,
    .hero::after {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    .hero-content::before,
    .hero-content::after {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .hero-content::before,
    .hero-content::after {
        animation: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    .gradientShift {
        animation: none;
    }
}

/* --- How It Works Section (from reference) --- */
.how-it-works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.how-it-works-card { background: #fff; padding: 30px; text-align: center; border-radius: 10px; box-shadow: var(--box-shadow); transition: var(--transition); position: relative; border-top: 4px solid var(--gold); }
.how-it-works-card:hover { transform: translateY(-10px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.how-it-works-card .step-number { position: absolute; top: -15px; left: -10px; width: 40px; height: 40px; background: var(--royal-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Playfair Display', serif; font-size: 1.2rem; border: 3px solid var(--cream); }
.how-it-works-card .icon { font-size: 3rem; color: var(--gold); margin-bottom: 15px; margin-top: 20px; }
.how-it-works-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.how-it-works-card p { font-size: 0.9rem; color: #666; }

/* --- Why Professionals Choose Us Section (from reference) --- */
.why-choose-us-section { background-color: var(--cream); }
.benefits-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card { 
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.benefit-card:hover { 
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-bottom-color: var(--gold);
}
.benefit-card .icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.benefit-card h3 {
    color: var(--royal-blue);
    margin-bottom: 15px;
}
.benefit-card p {
    color: var(--dark-gray);
}