/* Download Post Type Styles */

/* Section 1: Hero */
.download-hero {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(71, 123, 173, 0.85);
}

.download-hero .container {
    position: relative;
    z-index: 1;
}

.download-hero__title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Section 2: Content */
.download-content {
    padding: 80px 0;
    background: #ffffff;
}

.download-content .container {
    max-width: 900px;
    text-align: center;
}

.download-content h2 {
    color: #005498;
    font-size: 32px;
    margin-bottom: 30px;
}

.download-content p {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.download-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.download-content ul li {
    color: #333333;
    font-size: 16px;
    margin-bottom: 10px;
}

.download-content ul li::before {
    content: '✓';
    color: #005498;
    font-weight: bold;
    margin-right: 10px;
}

/* Section 3: Form */
.download-form {
    padding: 80px 0;
    background: #ffffff;
}

.download-form__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-form__image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.download-form__form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Gravity Forms Styling */
.download-form__form .gform_wrapper {
    margin: 0;
}

.download-form__form .gform_body .gfield_label {
    font-size: 16px;
    font-weight: 400;
    color: #3c3c3c;
    margin-bottom: 12px;
}

.download-form__form .gform_body input[type="text"],
.download-form__form .gform_body input[type="email"],
.download-form__form .gform_body input[type="tel"],
.download-form__form .gform_body textarea,
.download-form__form .gform_body select,
.download-form__form input[type="text"],
.download-form__form input[type="email"],
.download-form__form input[type="tel"] {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid #d0d0d0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    color: #333333 !important;
    box-shadow: none !important;
}

.download-form__form .gform_body input[type="text"]:focus,
.download-form__form .gform_body input[type="email"]:focus,
.download-form__form .gform_body input[type="tel"]:focus,
.download-form__form .gform_body textarea:focus,
.download-form__form .gform_body select:focus,
.download-form__form input[type="text"]:focus,
.download-form__form input[type="email"]:focus,
.download-form__form input[type="tel"]:focus {
    outline: none !important;
    border-bottom-color: #999999 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.download-form__form .gfield {
    margin-bottom: 24px;
}

.download-form__form .gform_footer {
    margin-top: 30px;
    padding: 0 !important;
    text-align: left !important;
    display: flex !important;
    justify-content: flex-start !important;
}

.download-form__form .gform_footer input[type="submit"],
.download-form__form .gform_button,
.download-form__form .gform_footer button {
    background: #7d6f4d !important;
    color: #ffffff !important;
    padding: 12px 36px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 !important;
}

.download-form__form .gform_footer input[type="submit"]:hover,
.download-form__form .gform_button:hover,
.download-form__form .gform_footer button:hover {
    background: #6a5f42 !important;
}

/* Required asterisk styling */
.download-form__form .gfield.gfield_contains_required .gfield_label .gfield_required {
    color: #e74c3c;
}

/* Checkbox styling */
.download-form__form .gfield_checkbox label,
.download-form__form .gfield_radio label {
    font-size: 14px;
    color: #3c3c3c;
}

.download-form__form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 0 8px 0 0 !important;
}

/* reCAPTCHA spacing */
.download-form__form .ginput_recaptcha {
    margin: 20px 0;
}

/* Section 4: Download CTA */
.download-cta {
    padding: 80px 0;
    background: #005498;
    color: #ffffff;
    display: none;
}

.download-cta.show {
    display: block;
}

.download-cta__wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.download-cta__icon {
    flex-shrink: 0;
}

.download-cta__content h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.download-cta .btn-gold {
    background: #C9A961;
    color: #ffffff;
    padding: 12px 40px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-cta .btn-gold:hover {
    background: #b39551;
}

/* Responsive */
@media (max-width: 768px) {
    .download-hero {
        padding: 80px 0;
    }

    .download-hero__title {
        font-size: 32px;
    }

    .download-form__wrapper,
    .download-cta__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .download-cta__icon {
        text-align: center;
    }

    .download-content h2 {
        font-size: 24px;
    }

    .download-cta__content h2 {
        font-size: 22px;
    }
}

body.single-download .footer-form {
    display: none !important;
}