/* CSS Reset and Variables */
:root {
    --color-primary: #004778;
    --color-secondary: #07314e;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;
    --color-button-bg: #004778;
    --color-button-bg-hover: #00365c;
    --color-button-text: #ffffff;
    --color-modal-bg: rgba(7, 49, 78, 0.6);
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: #e5eef7;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Landing Page Wrapper */
.lp-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
header {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Main Section Content */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-support-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    white-space: pre-line;
}

/* Button Call to Action */
.cta-button {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-button-text);
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 4px;
    padding: 1.1rem 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 71, 120, 0.3);
    transition: all var(--transition-speed);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--color-button-bg-hover);
    box-shadow: 0 6px 20px rgba(0, 71, 120, 0.45);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 71, 120, 0.3);
}

/* Hero Media - Mockup Image */
.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.hero-media img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(7, 49, 78, 0.15));
    transition: transform var(--transition-speed);
}

.hero-media img:hover {
    transform: translateY(-5px);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-modal-bg);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

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

.modal-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.85);
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #a0aec0;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: var(--color-secondary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-secondary);
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    transition: all var(--transition-speed);
}

.form-input:focus {
    background-color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 120, 0.15);
}

.form-input.error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.error-message {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 0.35rem;
    display: none;
}

.form-terms {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.submit-button {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--color-primary);
    border: none;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 71, 120, 0.2);
    transition: all var(--transition-speed);
}

.submit-button:hover {
    background-color: var(--color-button-bg-hover);
    box-shadow: 0 6px 15px rgba(0, 71, 120, 0.3);
}

.submit-button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    animation: scaleUp 0.4s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-whatsapp);
    margin-bottom: 1rem;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.success-text {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-speed);
    z-index: 999;
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-whatsapp-dark);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-support-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    body {
        background-position: center;
    }
    .lp-container {
        padding: 1.5rem 1rem;
    }
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    .hero-support-text {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    .cta-button {
        width: 100%;
        max-width: 320px;
        padding: 1rem 2rem;
    }
    .hero-media {
        order: -1; /* Place image on top on mobile */
    }
    .hero-media img {
        max-width: 90%;
    }
    .whatsapp-widget {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    .whatsapp-widget svg {
        width: 30px;
        height: 30px;
    }
    .modal-container {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-support-text {
        font-size: 1rem;
    }
}
