/* Base styles */
:root {
    --primary-color: #7e22ce; /* Purple */
    --primary-light: #e9d5ff;
    --text-color: #333;
    --bg-color: #fff;
    --secondary-bg: #f9f9f9;
    --highlight-gradient: linear-gradient(-120deg, rgba(255, 224, 0, 0.2), rgba(255, 224, 0, 0.7) 95%, rgba(255, 224, 0, 0.1));
    --border-color: #e5e5e5;
    --success-color: #10b981;
    --warning-color: #ff5722;
    --heading-font: 'Lora', Georgia, serif;
    --body-font: 'Inter', Arial, sans-serif;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    font-size: 18px;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: var(--body-font);
}

strong {
    font-weight: 700;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: black;
    color: white;
}

.logo {
    display: flex;
    justify-content: center;
    padding: 0.3rem 0;
}

.logo img {
    max-height: 40px;
    width: auto;
}

/* Main content sections */
section {
    padding: 1.5rem 0;
    border-bottom: none;
}

.hero {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: var(--body-font);
}

.video-container {
    margin: 2rem auto;
    width: 100%;
    max-width: 800px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

#hero-video {
    width: 100%;
    display: block;
}

/* Play button overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.play-button-overlay:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-left: 25px solid var(--primary-color);
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

/* Sound overlay */
.sound-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 150px;
    height: auto;
    cursor: pointer;
}

.highlight {
    background: var(--highlight-gradient);
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    line-height: 1.5;
    font-family: var(--heading-font);
}

/* Rating and Trustpilot-like elements */
.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem;
    gap: 10px;
}

.rating-stars {
    color: var(--success-color);
    font-size: 1rem;
}

.trustpilot-link {
    margin-left: 1rem;
    font-size: 0.9rem;
}

/* Letter intro section */
.letter-intro {
    margin: 3rem 0 2rem;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.letter-intro p {
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-family: var(--heading-font);
}

.location {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    font-family: var(--heading-font);
}

.reading-time {
    margin-top: 1.5rem;
    padding: 0;
}

.reading-time p {
    font-weight: normal;
}

/* Comparison table */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-bg);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--secondary-bg);
}

/* Benefits section */
.benefit-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.benefit-item h3 {
    color: var(--primary-color);
}

/* Features list */
.features-list {
    margin-top: 1.5rem;
}

.feature-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.small {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonials-list {
    margin-top: 2rem;
}

.testimonial {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.author {
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
}

/* How it works */
.steps {
    margin-top: 1.5rem;
}

.step {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step h3 {
    color: var(--primary-color);
}

/* CTA and form */
.form-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(245, 245, 250, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.form-col {
    flex: 1;
    min-width: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--body-font);
    font-size: 0.95rem;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--body-font);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
}

input::placeholder {
    color: #999;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

/* Phone input container styling */
.phone-input-container {
    display: flex;
    gap: 8px;
}

.phone-input-container select {
    width: 120px;
    flex-shrink: 0;
}

.phone-input-container input {
    flex-grow: 1;
}

/* Input with loader */
.input-with-loader {
    position: relative;
    width: 100%;
    display: block;
}

#birthplace {
    width: 100%;
    box-sizing: border-box;
}

.input-loader {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(126, 34, 206, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    display: none;
}

.input-loader.active {
    display: block;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.place-suggestions {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 5px;
    display: none;
    left: 0;
    right: 0;
    word-break: break-word;
    white-space: normal;
}

.place-suggestions div, 
.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.place-suggestions div:hover,
.suggestion-item:hover {
    background-color: #f5f5f5;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .place-suggestions {
        max-height: 250px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    
    .place-suggestions div,
    .suggestion-item {
        padding: 14px 15px;
        font-size: 1rem;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .form-group {
        position: relative;
    }
    
    .input-with-loader input {
        padding-right: 35px; /* Make room for the loader */
    }
    
    /* Improve tap targets for mobile */
    .place-suggestions div:active {
        background-color: #f0f0f0;
    }

    .input-with-loader {
        display: block;
        width: 100%;
    }
    
    .input-with-loader input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
}

/* Read-only fields */
input[readonly] {
    background-color: rgba(245, 245, 245, 0.8);
    cursor: not-allowed;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
    font-family: var(--body-font);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #6b21a8; /* Darker purple */
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.warning {
    color: var(--warning-color);
    font-weight: 600;
}

/* Yellow highlight styles for key points - updated to use exact gradient */
.highlight-box {
    background: var(--highlight-gradient);
    padding: 1rem 1.25rem 1rem 1rem;
    border-radius: 0;
    margin: 1.5rem 0;
    display: inline-block;
    width: auto;
    min-width: 70%;
}

.highlight-text {
    background: var(--highlight-gradient);
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    font-weight: 600;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Remove the solid headline highlight style */
.headline-highlight {
    display: none;
}

/* Make sure the reading-time highlight is also using the exact gradient */
.reading-time .highlight-text {
    background: var(--highlight-gradient);
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    font-weight: 600;
    color: var(--text-color);
    display: inline;
}

/* Section title styles to match GetClients */
.section-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1.3;
    font-family: var(--heading-font);
    font-weight: 700;
}

.from-desk {
    font-weight: bold;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.location {
    color: #666;
    margin-top: 0;
    font-size: 0.95rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    display: inline-block;
}

.reading-time {
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Adjust hero section to better match GetClients style */
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.letter-intro {
    margin: 25px 0;
    text-align: left;
}

/* Adjust section titles to match GetClients style */
.section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Footer */
footer {
    padding: 2rem 0;
    background-color: black;
    text-align: center;
    color: white;
    margin-top: 4rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    margin: 0 1rem;
    color: #ccc;
}

.disclaimer {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .video-container {
        margin: 1.5rem auto;
    }
    
    .benefit-item, 
    .feature-item, 
    .testimonial, 
    .step {
        padding: 1rem;
    }
    
    .rating {
        flex-direction: column;
        gap: 5px;
    }
    
    .trustpilot-link {
        margin-left: 0;
    }

    .highlight-box {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .place-suggestions {
        position: fixed;
        top: auto;
        left: 15px;
        right: 15px;
        width: auto;
        max-height: 40vh;
        z-index: 100;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    
    .place-suggestion-item {
        padding: 12px 15px;
        font-size: 16px; /* Larger touch targets for mobile */
    }
    
    input, select {
        font-size: 16px; /* Prevent zoom on mobile */
        padding: 12px; /* Larger touch targets */
    }
    
    .form-container {
        padding: 1.25rem;
    }
}

/* Facebook testimonials */
.facebook-testimonials {
    margin: 1.5rem 0;
    text-align: center;
}

.fb-testimonials-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Transition message styling */
.transition-message {
    margin: 2rem 0;
    padding: 1.25rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.transition-message p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.transition-message p:last-child {
    margin-bottom: 0.5rem;
}

/* New subtitle class for better spacing */
.subtitle {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

/* Feature bullets styling */
.feature-bullets {
    margin-bottom: 1rem;
}

.feature-bullets li {
    padding: 0.3rem 0;
    list-style-type: none;
}

/* Success Popup Modal - Enhanced Smooth & Responsive */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    animation: popupFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-content {
    background-color: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
    transform: scale(0.9) translateY(20px);
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Smooth scrolling for popup content */
.popup-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.popup-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
}

.popup-body {
    padding: 25px 30px 30px;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    color: #6c757d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close-popup:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #212529;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close-popup:active {
    transform: scale(0.95);
}

.popup-emphasis {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 18px;
    text-align: center;
}

.popup-highlight {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    color: #2c3e50;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
    border-left: 4px solid #4dabf7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.popup-benefits {
    padding-left: 20px;
    margin-bottom: 25px;
}

.popup-benefits li {
    margin-bottom: 12px;
    padding-left: 8px;
    line-height: 1.5;
}

.popup-benefits li:last-child {
    margin-bottom: 0;
}

.popup-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.popup-section h4 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.popup-button {
    display: block;
    background-color: #4dabf7;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.25);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.popup-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;
}

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

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.4);
}

.popup-button:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Enhanced Special Event Button */
.popup-button.special-event {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 20px 25px;
    margin-bottom: 15px;
    animation: specialEventPulse 3s infinite;
    border: 3px solid #FFD93D;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.popup-button.special-event::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.popup-button.special-event:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

@keyframes specialEventPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    }
}

/* Enhanced Event Details */
.event-details {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    border: 2px solid #8A45C8;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(138, 69, 200, 0.1);
    position: relative;
    overflow: hidden;
}

.event-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8A45C8, #FF6B6B, #8A45C8);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.event-details p {
    margin: 10px 0;
    line-height: 1.6;
}

.event-details strong {
    color: #8A45C8;
    font-size: 1.1rem;
    font-weight: 700;
}

.event-details em {
    color: #FF6B6B;
    font-weight: 600;
    font-style: italic;
}

.popup-note {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 20px;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .popup-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        max-height: 95vh;
        margin: 0;
        transform: scale(0.95) translateY(30px);
    }
    
    .popup-header {
        padding: 20px 25px;
        border-radius: 20px 20px 0 0;
    }
    
    .popup-header h3 {
        font-size: 1.4rem;
        padding-right: 50px;
    }
    
    .close-popup {
        right: 15px;
        top: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .popup-body {
        padding: 20px 25px 25px;
    }
    
    .popup-emphasis {
        font-size: 1.2rem;
    }
    
    .popup-section {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .popup-button {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .popup-button.special-event {
        padding: 22px 25px;
        font-size: 1.1rem;
        min-height: 64px;
    }
    
    .button-container {
        gap: 15px;
        margin: 25px 0;
    }
    
    .event-details {
        padding: 20px;
        border-radius: 12px;
        margin-top: 20px;
    }
    
    .event-details p {
        margin: 8px 0;
    }
    
    /* Improve touch targets */
    .popup-button:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .popup-overlay {
        padding: 5px;
        padding-top: 10px;
    }
    
    .popup-content {
        border-radius: 16px;
        max-height: 98vh;
    }
    
    .popup-header {
        padding: 18px 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .popup-header h3 {
        font-size: 1.3rem;
    }
    
    .close-popup {
        right: 12px;
        top: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .popup-body {
        padding: 18px 20px 22px;
    }
    
    .popup-emphasis {
        font-size: 1.15rem;
    }
    
    .popup-button {
        padding: 18px 16px;
        font-size: 0.95rem;
        min-height: 60px;
    }
    
    .popup-button.special-event {
        padding: 24px 20px;
        font-size: 1.05rem;
        min-height: 68px;
    }
    
    .event-details {
        padding: 18px;
        margin-top: 18px;
    }
    
    .event-details strong {
        font-size: 1.05rem;
    }
}

/* Enhanced smooth scrolling and performance */
.popup-content {
    will-change: transform;
    contain: layout style paint;
}

.popup-button {
    will-change: transform;
    contain: layout style paint;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .popup-overlay,
    .popup-content,
    .popup-button,
    .close-popup {
        animation: none;
        transition: opacity 0.2s;
    }
    
    .popup-button.special-event {
        animation: none;
    }
    
    .event-details::before {
        animation: none;
    }
}

/* Quota Exhaustion Modal */
.quota-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.quota-popup.show {
    opacity: 1;
    visibility: visible;
}

.quota-popup-content {
    background: linear-gradient(145deg, #1a0d35 0%, #2c1657 100%);
    color: white;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: popupFadeIn 0.4s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    overflow: hidden;
}

.quota-popup-body {
    padding: 30px 20px;
}

.quota-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.quota-popup .close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quota-icon {
    font-size: 50px;
    color: #ff5722;
    margin-bottom: 20px;
}

.quota-popup h3 {
    margin: 0 0 15px;
    font-size: 1.8rem;
    font-family: var(--heading-font);
    font-weight: 700;
    color: #ff5722;
}

.quota-popup p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.purchase-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(145deg, #ff5722 0%, #ff9800 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin: 10px 0 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    text-decoration: none;
}

.quota-notice {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Form submission loading state */
.btn-primary .fa-spinner {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Error state for consent checkbox */
.checkbox-group.error {
    animation: shake 0.5s;
}

.consent-error {
    color: #ff5722;
    font-size: 0.9rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.consent-error .fa-exclamation-circle {
    color: #ff5722;
}

/* Button pulse animation and hover */
.btn-primary.pulse {
    animation: pulse 1s ease-out;
}

.btn-primary.hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

/* Form validation styles */
input.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Rating stars */
.ratings .star {
    cursor: pointer;
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.ratings .star:hover,
.ratings .star.star-filled {
    color: #ffc107;
}

.ratings .star.star-selected {
    color: #ffc107;
}

/* Mobile menu styling */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

/* Suggestion item styling */
.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    font-size: 0.95rem;
    line-height: 1.4;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:active {
    background-color: #e9e9e9;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .suggestion-item {
        padding: 14px 15px;
        font-size: 1rem;
    }
}

/* Video Testimonials Section */
.video-testimonials {
    padding: 3rem 0;
    background-color: var(--secondary-bg);
}

.video-testimonials .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    opacity: 0.8;
    font-family: var(--body-font);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-testimonial {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.video-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-testimonial video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

/* Testimonial Play Button Overlay */
.testimonial-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-play-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-play-button .play-icon {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-left: 20px solid var(--primary-color);
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Mobile Responsive for Video Grid */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .video-testimonials {
        padding: 2rem 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .video-testimonials .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Smaller play buttons on mobile */
    .testimonial-play-button {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-play-button .play-icon {
        border-top: 10px solid transparent;
        border-left: 16px solid var(--primary-color);
        border-bottom: 10px solid transparent;
        margin-left: 3px;
    }
}

@media (max-width: 480px) {
    .video-testimonials {
        padding: 1.5rem 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .video-testimonials .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        padding: 0 0.8rem;
    }
    
    /* Even smaller play buttons on very small screens */
    .testimonial-play-button {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-play-button .play-icon {
        border-top: 8px solid transparent;
        border-left: 14px solid var(--primary-color);
        border-bottom: 8px solid transparent;
        margin-left: 2px;
    }
    
    /* Reduce card border radius on mobile */
    .video-testimonial {
        border-radius: 8px;
    }
    
    .video-testimonial video {
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .video-grid {
        gap: 0.6rem;
    }
    
    .video-testimonials .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.6rem;
    }
    
    /* Compact layout for very small screens */
    .testimonial-play-button {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-play-button .play-icon {
        border-top: 7px solid transparent;
        border-left: 12px solid var(--primary-color);
        border-bottom: 7px solid transparent;
        margin-left: 2px;
    }
} 