/* ========================================
   Hero Section
======================================== */
.page-hero {
    position: relative;
    height: clamp(300px, 40vh, 500px);
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #0D3458 0%, #1a5c99 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 52, 88, 0.4);
}

.hero-background .pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image: url('/assets/pattern.svg');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    opacity: 0.85;
}

/* ========================================
   Main Section
======================================== */
.letstalk-section {
    padding: clamp(3rem, 8vh, 6rem) 2rem;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    /* Slight grey background */
}

.letstalk-section .container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   Letstalk Content
======================================== */
.letstalk-content {
    text-align: center;
    margin: 0 auto 3rem auto;
    max-width: 700px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0D3458;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-badge .material-icons {
    font-size: 1.2rem;
}

.letstalk-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--color-primary, #0D3458);
    margin-bottom: 1rem;
}

.letstalk-content p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-secondary, #333);
    line-height: 1.6;
}

/* ========================================
   Contact Form
======================================== */
.contact-form {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* 
   Grid changed to single-column on mobile,
   but two columns on larger screens 
*/
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary, #0D3458);
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

/* INPUTS */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary, #0D3458);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 52, 88, 0.15);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* TEXTAREA */
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* BUTTONS */
.submit-button-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary, #0D3458);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background-color: #0a2845;
    transform: translateY(-2px);
}

/* 
   Progress bar styling inside the button 
*/
.upload-progress-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
}

/* Calculator prompt styling */
.calculator-prompt {
    text-align: center;
    padding: 2rem;
    background: rgba(13, 52, 88, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.calculator-prompt p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-primary, #0D3458);
}

.prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* ========================================
   File Upload (commented out in HTML but kept)
======================================== */
.file-upload-container {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: var(--color-primary, #0D3458);
    background: rgba(13, 52, 88, 0.05);
}

.file-upload-container input[type="file"] {
    display: none;
}

.file-upload-text {
    color: #666;
    font-family: 'Poppins', sans-serif;
}

.file-upload-text .material-icons {
    font-size: 2.5rem;
    color: var(--color-primary, #0D3458);
    margin-bottom: 1rem;
}

.file-upload-text p {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.file-upload-text small {
    color: #999;
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   Success Modal
======================================== */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.success-modal.show {
    display: flex;
    opacity: 1;
}

.success-modal.hide {
    opacity: 0;
}

.success-modal-content {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #4bb71b;
    }
}

.success-message {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .submit-button-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-primary {
        width: 100%;
    }

    .calculator-prompt {
        padding: 1rem;
    }

    .letstalk-section {
        padding: 2rem 1rem;
    }

    .contact-form {
        padding: 1rem;
    }
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

.global-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: opacity 0.3s ease;
}

.global-error .icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* Progress Bar */
.upload-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}