.torch-pdf-download,
.torch-pdf-download * {
    box-sizing: border-box;
}

body .pdfdl-btn {
    padding: 15px 29px !important;
    cursor: pointer;
    background: #39aae0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 100px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
}

body .pdfdl-btn:focus-visible,
.torch-pdf-download a:focus-visible,
.torch-pdf-download button:focus-visible,
.torch-pdf-download input:focus-visible,
.torch-pdf-download select:focus-visible,
.torch-pdf-download textarea:focus-visible {
    outline: 3px solid #f5b335 !important;
    outline-offset: 3px;
}

.torch-pdf-modal-open {
    overflow: hidden;
}

.torch-pdf-modal-root .modalss {
    display: none;
    position: fixed;
    z-index: 100000;
    inset: 0;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 8vh 16px 32px;
    background-color: rgb(0 0 0 / 58%);
}

.torch-pdf-modal-root .modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 28%);
}

body .torch-pdf-modal-root .close-btn {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    cursor: pointer;
    color: #33475b !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    line-height: 34px !important;
}

.torch-pdf-form-shell {
    width: 100%;
    min-width: 0;
    color: #33475b;
}

.torch-pdf-form-loading {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #475467;
    font-size: 16px;
}

.torch-pdf-form-loading[hidden],
.torch-pdf-form-error[hidden],
.download_button[hidden] {
    display: none !important;
}

.torch-pdf-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #d5d7da;
    border-top-color: #39aae0;
    border-radius: 50%;
    animation: torch-pdf-spin 0.8s linear infinite;
}

.torch-pdf-form-error {
    padding: 16px;
    color: #8a1c1c;
    background: #fff1f1;
    border: 1px solid #e9a5a5;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
}

.torch-pdf-form-container,
.torch-pdf-form-container form,
.torch-pdf-form-container fieldset,
.torch-pdf-form-container .hs-form-field,
.torch-pdf-form-container input,
.torch-pdf-form-container select,
.torch-pdf-form-container textarea {
    max-width: 100% !important;
}

.torch-pdf-form-container fieldset {
    width: 100% !important;
}

.torch-pdf-form-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.torch-pdf-form-container select,
.torch-pdf-form-container textarea {
    width: 100% !important;
}

.torch-pdf-download .submitted-message {
    color: #33475b;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
}

.download_button {
    margin-top: 24px;
    text-align: center;
}

.download_button a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    color: #fff !important;
    background: #39aae0;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1;
}

.et-l--body .torch-resource-guide-hero.et_pb_section {
    padding: 72px 24px 80px !important;
    background: #0c2b48 !important;
}

.et-l--body .torch-resource-guide-hero__header.et_pb_row,
.et-l--body .torch-resource-guide-hero__grid.et_pb_row {
    width: 100% !important;
    max-width: 1200px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
}

.et-l--body .torch-resource-guide-hero__header {
    margin-bottom: 40px !important;
}

.et-l--body .torch-resource-guide-hero__eyebrow,
.et-l--body .torch-resource-guide-hero__title,
.et-l--body .torch-resource-guide-hero__description {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.et-l--body .torch-resource-guide-hero__eyebrow {
    margin-bottom: 12px !important;
    color: #8dd5f5 !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.et-l--body .torch-resource-guide-hero__eyebrow:has(.et_pb_text_inner:empty),
.et-l--body .torch-resource-guide-hero__description:has(.et_pb_text_inner:empty) {
    display: none;
}

.et-l--body .torch-resource-guide-hero__title h1 {
    max-width: 1000px;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    text-align: left !important;
}

.et-l--body .torch-resource-guide-hero__description {
    max-width: 900px;
    margin-top: 20px !important;
    color: #d6e0e7 !important;
    font-size: 20px;
    line-height: 1.55;
}

.et-l--body .torch-resource-guide-hero__description,
.et-l--body .torch-resource-guide-hero__description p,
.et-l--body .torch-resource-guide-hero__description li {
    color: #d6e0e7 !important;
}

.et-l--body .torch-resource-guide-hero__grid.et_pb_row {
    display: flex !important;
    align-items: stretch !important;
    gap: 48px;
}

.et-l--body .torch-resource-guide-hero__form-column.et_pb_column,
.et-l--body .torch-resource-guide-hero__image-column.et_pb_column {
    width: calc(50% - 24px) !important;
    min-width: 0;
    margin: 0 !important;
}

.et-l--body .torch-resource-guide-hero__form-card {
    height: 100%;
    padding: 40px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgb(0 0 0 / 18%);
}

.et-l--body .torch-resource-guide-hero__form-card .et_pb_code_inner {
    height: 100%;
}

.et-l--body .torch-resource-guide-hero__image,
.et-l--body .torch-resource-guide-hero__image .et_pb_image_wrap {
    display: block;
    width: 100% !important;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.et-l--body .torch-resource-guide-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

@keyframes torch-pdf-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .torch-pdf-spinner {
        animation-duration: 1.8s;
    }
}

@media (max-width: 980px) {
    .et-l--body .torch-resource-guide-hero.et_pb_section {
        padding: 56px 24px 64px !important;
    }

    .et-l--body .torch-resource-guide-hero__grid.et_pb_row {
        flex-direction: column !important;
        gap: 32px;
    }

    .et-l--body .torch-resource-guide-hero__form-column.et_pb_column,
    .et-l--body .torch-resource-guide-hero__image-column.et_pb_column {
        width: 100% !important;
    }

    .et-l--body .torch-resource-guide-hero__image img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 767px) {
    .torch-pdf-modal-root .modalss {
        padding: 16px;
    }

    .torch-pdf-modal-root .modal-content {
        padding: 40px 20px 24px;
    }

    .et-l--body .torch-resource-guide-hero.et_pb_section {
        padding: 40px 18px 48px !important;
    }

    .et-l--body .torch-resource-guide-hero__header {
        margin-bottom: 28px !important;
    }

    .et-l--body .torch-resource-guide-hero__title h1 {
        font-size: 36px;
    }

    .et-l--body .torch-resource-guide-hero__description {
        margin-top: 16px !important;
        font-size: 17px;
    }

    .et-l--body .torch-resource-guide-hero__grid.et_pb_row {
        gap: 24px;
    }

    .et-l--body .torch-resource-guide-hero__form-card {
        padding: 24px 18px;
        border-radius: 10px;
    }

    .et-l--body .torch-resource-guide-hero__image,
    .et-l--body .torch-resource-guide-hero__image .et_pb_image_wrap,
    .et-l--body .torch-resource-guide-hero__image img {
        border-radius: 10px;
    }
}
