.wizard-page {
    min-height: 75vh;
    padding: 32px 20px 70px;
    background: #f4f7fb;
}

.wizard-heading {
    max-width: 760px;
    margin-bottom: 20px;
}

.wizard-heading h1 {
    margin: 6px 0 10px;
    color: #10244a;
font-size: clamp(2rem, 4vw, 3.2rem);
line-height: 1.05;
}

.wizard-heading p {
    margin: 0;
    color: #64728b;
    font-size: 1.08rem;
    line-height: 1.7;
}

.wizard-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 48, 92, 0.1);
}

.wizard-progress {
    padding: 30px 22px;
    background: #0c2855;
}

.wizard-progress-item {
    width: 100%;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    border: 0;
    border-radius: 12px;
    padding: 13px 12px;
    background: transparent;
    color: #b9c9e4;
    text-align: left;
    cursor: default;
}

.wizard-progress-item span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    font-weight: 800;
}

.wizard-progress-item strong {
    font-size: 0.92rem;
    line-height: 1.3;
}

.wizard-progress-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wizard-progress-item.active span {
    border-color: #4fd7ea;
    background: #4fd7ea;
    color: #0c2855;
}

.wizard-progress-item.complete {
    color: #e4edf9;
    cursor: pointer;
}

.wizard-progress-item.complete span {
    border-color: #4fd7ea;
    color: #4fd7ea;
}

.wizard-content {
    padding: 42px;
}

.wizard-step {
    display: none;
    min-height: 480px;
}

.wizard-step.active {
    display: block;
}

.wizard-step-number {
    display: inline-block;
    margin-bottom: 8px;
    color: #2461df;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.wizard-step h2 {
    margin: 0 0 10px;
    color: #10244a;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.wizard-step > p {
    margin: 0 0 30px;
    color: #65738d;
    line-height: 1.65;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
}

.choice-card-content {
    min-height: 125px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 2px solid #dce4ef;
    border-radius: 17px;
    padding: 24px;
    transition: 0.18s ease;
}

.choice-card-content strong {
    color: #10244a;
    font-size: 1.15rem;
}

.choice-card-content small {
    color: #6a7891;
    line-height: 1.5;
}

.choice-card input:checked + .choice-card-content {
    border-color: #2461df;
    background: #f0f5ff;
    box-shadow: 0 0 0 4px rgba(36, 97, 223, 0.09);
}

.wizard-page .form-field {
    display: grid;
    gap: 9px;
    margin-bottom: 22px;
}

.wizard-page .form-field label {
    color: #162440;
    font-weight: 800;
}

.wizard-page .form-field input,
.wizard-page .form-field select,
.wizard-page .form-field textarea {
    width: 100%;
    border: 1px solid #cbd6e5;
    border-radius: 12px;
    padding: 14px 15px;
    background: #fff;
    font: inherit;
}

.wizard-page .form-field input:focus,
.wizard-page .form-field select:focus,
.wizard-page .form-field textarea:focus {
    outline: 3px solid rgba(36, 97, 223, 0.12);
    border-color: #2461df;
}

.wizard-page .form-field small {
    color: #71809a;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.field-label-row span {
    color: #66748c;
    font-size: 0.9rem;
}

.ad-preview-card {
    margin-top: 28px;
    border: 1px solid #dce5f1;
    border-radius: 16px;
    padding: 22px;
    background: #f8fbff;
}

.ad-preview-label {
    display: block;
    margin-bottom: 12px;
    color: #75839b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-preview-card a {
    display: grid;
    gap: 5px;
    text-decoration: none;
}

.ad-preview-card strong {
    color: #1854c7;
    font-size: 1.12rem;
}

.ad-preview-card small {
    color: #23744a;
}

.keyword-row {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 12px;
    align-items: end;
}

.remove-keyword {
    height: 50px;
    margin-bottom: 22px;
    border: 1px solid #e2bcbc;
    border-radius: 11px;
    background: #fff6f6;
    color: #a82e2e;
    font-size: 1.5rem;
    cursor: pointer;
}

.price-summary {
    margin-top: 30px;
    border: 1px solid #dce5f1;
    border-radius: 16px;
    overflow: hidden;
}

.price-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid #e8eef6;
}

.price-summary > div:last-child {
    border-bottom: 0;
}

.price-summary-total {
    background: #102b59;
    color: #fff;
}

.standards-box {
    border: 1px solid #dce5f1;
    border-radius: 16px;
    padding: 10px 22px;
}

.review-policy-note {
    margin-top: 20px;
    border-left: 4px solid #2461df;
    padding: 14px 16px;
    background: #f1f5fd;
    color: #4f5f79;
    line-height: 1.6;
}

.review-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
}

.review-panel > span {
    color: #6e7b93;
    font-size: 0.85rem;
    font-weight: 800;
}

.final-preview {
    margin-top: 10px;
}

.review-details {
    margin: 0;
    border: 1px solid #dce5f1;
    border-radius: 16px;
    overflow: hidden;
}

.review-details div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 14px 17px;
    border-bottom: 1px solid #e8eef6;
}

.review-details div:last-child {
    border-bottom: 0;
}

.review-details dt {
    color: #6b7890;
    font-weight: 700;
}

.review-details dd {
    margin: 0;
    color: #162440;
    overflow-wrap: anywhere;
}

.review-details dd strong {
    display: block;
    color: #162440;
    font-size: 1rem;
}

.review-details dd small {
    display: block;
    margin-top: 3px;
    color: #71809a;
    font-size: 0.8rem;
    font-weight: 700;
}

.wizard-submit {
    margin-top: 26px;
}

.wizard-submit-note {
    margin-top: 13px !important;
    text-align: center;
    font-size: 0.9rem;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5ebf3;
}

.button-secondary {
    border: 1px solid #cbd7e7;
    background: #fff;
    color: #1d355f;
    box-shadow: none;
}

.draft-review-card {
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    padding: 34px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 48, 92, 0.1);
}

.draft-review-card .review-details {
    margin-top: 26px;
}

.draft-review-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
}

.draft-review-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ========================================
   STEP 7 — PROMOTIONAL MEDIA
======================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.media-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #dce5f1;
    border-radius: 18px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(23, 48, 92, 0.05);
}

.media-card h3 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6edf6;
    color: #10244a;
    font-size: 1.2rem;
}

.media-card > p {
    margin: 0 0 18px;
    color: #687791;
    line-height: 1.6;
}

.media-preview {
    display: grid;
    place-items: center;
    min-height: 240px;
    overflow: hidden;
    border: 2px dashed #ccd8e8;
    border-radius: 16px;
    background: #f8fbff;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

.media-preview:hover {
    border-color: #2461df;
    background: #f2f7ff;
}

.media-placeholder {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

.media-placeholder strong {
    color: #18335f;
    font-size: 1rem;
}

.media-placeholder small {
    max-width: 260px;
    color: #708099;
    line-height: 1.55;
}

.media-preview img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.media-preview video {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.media-actions .button {
    flex: 1 1 140px;
}

.media-information {
    margin-top: 18px;
    border-left: 4px solid #2461df;
    padding: 14px 16px;
    background: #f3f7ff;
    color: #56657d;
    line-height: 1.6;
}

.media-information strong {
    display: block;
    margin-bottom: 6px;
    color: #173c87;
}

.media-information ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.media-information li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .wizard-shell {
        grid-template-columns: 1fr;
    }

    .wizard-progress {
        display: grid;
        grid-template-columns: repeat(9, minmax(48px, 1fr));
        gap: 6px;
        padding: 16px;
        overflow-x: auto;
    }

    .wizard-progress-item {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 8px;
    }

    .wizard-progress-item strong {
        display: none;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wizard-page {
        padding-inline: 12px;
    }

    .wizard-content {
        padding: 28px 20px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .review-details div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .draft-review-actions {
        flex-direction: column;
    }

    .media-card {
        padding: 18px;
    }

    .media-preview {
        min-height: 190px;
    }

    .media-actions {
        flex-direction: column;
    }

    .media-actions .button {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Geographic targeting and inline wizard validation
|--------------------------------------------------------------------------
*/

.location-scope-grid {
    margin-bottom: 22px;
}

.location-targeting-panel {
    border: 1px solid #dce5f1;
    border-radius: 17px;
    padding: 22px;
    background: #f8fbff;
}

.location-targeting-panel[hidden],
#region-field[hidden],
#city-field[hidden],
.location-targeting-note[hidden] {
    display: none !important;
}

.location-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.location-field-grid .form-field:first-child {
    grid-column: 1 / -1;
}

.location-targeting-note {
    margin-top: 2px;
    border-left: 4px solid #2461df;
    padding: 12px 14px;
    background: #eef4ff;
    color: #4f5f79;
    line-height: 1.55;
}

.wizard-page .field-invalid {
    border-color: #c83c3c !important;
    box-shadow: 0 0 0 3px rgba(200, 60, 60, 0.1) !important;
}

.wizard-page .choice-grid.field-invalid,
.wizard-page .standards-box.field-invalid {
    border: 1px solid #c83c3c;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 0 0 3px rgba(200, 60, 60, 0.08);
}

.field-error {
    margin-top: 1px;
    border-left: 4px solid #c83c3c;
    border-radius: 0 9px 9px 0;
    padding: 10px 12px;
    background: #fff2f2;
    color: #962727;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.destination-test-row .field-error {
    flex-basis: 100%;
}

@media (max-width: 640px) {
    .location-field-grid {
        grid-template-columns: 1fr;
    }

    .location-field-grid .form-field:first-child {
        grid-column: auto;
    }

    .location-targeting-panel {
        padding: 18px;
    }
}

/*
|--------------------------------------------------------------------------
| Step 9 promotional media review
|--------------------------------------------------------------------------
*/

.review-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.review-media-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #d9e3f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 45, 85, 0.06);
}

.review-media-label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #102d57;
}

.review-media-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    overflow: hidden;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    background: #f6f9fd;
}

.review-media-preview img,
.review-media-preview video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #000000;
}

.review-media-preview img[hidden],
.review-media-preview video[hidden] {
    display: none;
}

.review-media-card > p {
    margin: 12px 0 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #526783;
}

@media (max-width: 820px) {
    .review-media-grid {
        grid-template-columns: 1fr;
    }

    .review-media-preview {
        min-height: 180px;
        max-height: 280px;
    }

    .review-media-preview img,
    .review-media-preview video {
        max-height: 280px;
    }
}

/*
|--------------------------------------------------------------------------
| Responsive promotional media
|--------------------------------------------------------------------------
*/

.media-preview video,
.review-media-preview video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #000;
}

.media-preview img,
.review-media-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.review-media-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    max-height: 420px;
    overflow: hidden;
    border-radius: 12px;
    background: #f6f9fd;
}

.review-media-preview video {
    max-height: 420px;
}

@media (max-width: 768px) {
    .media-preview video,
    .review-media-preview video,
    .media-preview img,
    .review-media-preview img {
        max-height: 320px;
    }

    .review-media-preview {
        min-height: 180px;
        max-height: 320px;
    }
}

/*
|--------------------------------------------------------------------------
| Preserve hidden promotional-media elements
|--------------------------------------------------------------------------
*/

.media-preview img[hidden],
.media-preview video[hidden],
.media-preview [hidden],
.review-media-preview img[hidden],
.review-media-preview video[hidden],
.review-media-preview [hidden] {
    display: none !important;
}

#promotional-image-existing-preview[hidden],
#promotional-video-existing-preview[hidden] {
    display: none !important;
}

#promotional-image-existing-preview,
#promotional-video-existing-preview {
    width: 100%;
}

#promotional-image-existing-preview img,
#promotional-video-existing-preview video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| Step 7 - Advertisement Presentation
|--------------------------------------------------------------------------
*/

.presentation-selector {
    margin-bottom: 42px;
}

.presentation-selector:last-child {
    margin-bottom: 0;
}

.presentation-selector-heading {
    margin-bottom: 22px;
}

.presentation-selector-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #2461df;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.presentation-selector-heading h3 {
    margin: 0 0 10px;
    color: #10244a;
    font-size: 1.45rem;
}

.presentation-selector-heading p {
    margin: 0;
    color: #65738d;
    line-height: 1.65;
}

.presentation-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.video-ratio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.presentation-card {
    position: relative;
    cursor: pointer;
}

.presentation-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.presentation-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 240px;
    border: 2px solid #dce4ef;
    border-radius: 18px;
    padding: 22px;
    background: #ffffff;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.presentation-card:hover .presentation-card-body {
    border-color: #2461df;
    transform: translateY(-2px);
}

.presentation-card input:checked + .presentation-card-body {
    border-color: #2461df;
    background: #f0f5ff;
    box-shadow: 0 0 0 4px rgba(36,97,223,.08);
}

.presentation-card-body strong {
    color: #10244a;
    font-size: 1.1rem;
}

.presentation-card-body small {
    flex: 1;
    color: #65738d;
    line-height: 1.55;
}

.presentation-card-value {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3fb;
    color: #4b5c78;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.presentation-card-visual,
.video-ratio-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    border-radius: 14px;
    background: linear-gradient(#f8fbff,#edf4fd);
    border: 1px solid #dbe6f4;
}

.presentation-card-visual-standard {
    flex-direction: column;
    gap: 8px;
}

.presentation-visual-line {
    width: 72%;
    height: 8px;
    border-radius: 999px;
    background: #2461df;
}

.presentation-visual-line-short {
    width: 50%;
    opacity: .65;
}

.presentation-visual-domain {
    width: 40%;
    height: 6px;
    border-radius: 999px;
    background: #6c88bb;
}

.presentation-card-visual-banner {
    align-items: center;
    justify-content: center;
}

.presentation-visual-banner-copy {
    width: 92%;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(90deg,#2461df,#5f9cff);
}

.presentation-card-visual-image {
    position: relative;
}

.presentation-visual-image-box {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(#7fb4ff,#2461df);
}

.presentation-visual-caption {
    position: absolute;
    bottom: 16px;
    width: 60%;
    height: 6px;
    border-radius: 999px;
    background: #7d90b3;
}

.presentation-card-visual-video {
    font-size: 2rem;
    color: #2461df;
}

.video-ratio-visual span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #10244a;
}

.video-ratio-landscape span {
    width: 86px;
    height: 48px;
    border: 2px solid #2461df;
    border-radius: 8px;
}

.video-ratio-portrait span {
    width: 48px;
    height: 86px;
    border: 2px solid #2461df;
    border-radius: 8px;
}

.video-ratio-square span {
    width: 64px;
    height: 64px;
    border: 2px solid #2461df;
    border-radius: 8px;
}

.video-ratio-feed span {
    width: 58px;
    height: 72px;
    border: 2px solid #2461df;
    border-radius: 8px;
}

.video-ratio-auto span {
    padding: 8px 16px;
    border-radius: 999px;
    background: #2461df;
    color: #fff;
}

.promotional-media-section {
    margin-top: 42px;
    padding-top: 36px;
    border-top: 1px solid #dfe7f2;
}

.promotional-media-section .media-grid {
    margin-top: 24px;
}

@media (max-width: 1024px) {

    .video-ratio-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 768px) {

    .advertisement-style-grid,
    .video-ratio-grid {
        grid-template-columns: 1fr;
    }

    .presentation-card-body {
        min-height: auto;
    }

}


/*
|--------------------------------------------------------------------------
| Listing review actions
|--------------------------------------------------------------------------
*/

.listing-review-actions {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.listing-review-warning,
.listing-review-primary-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
}

.listing-review-warning {
    border: 1px solid #efb8b8;
    background: #fff6f6;
}

.listing-review-primary-action {
    border: 1px solid #d7e3f2;
    background: #f7faff;
}

.listing-review-warning-content,
.listing-review-primary-action > div {
    min-width: 0;
}

.listing-review-warning-label,
.listing-review-action-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.listing-review-warning-label {
    color: #a52929;
}

.listing-review-action-label {
    color: #1d5fd1;
}

.listing-review-warning h2,
.listing-review-primary-action h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.35;
    color: #102d57;
}

.listing-review-warning p,
.listing-review-primary-action p {
    margin: 0;
    max-width: 720px;
    line-height: 1.65;
    color: #526783;
}

.listing-review-warning-button,
.listing-review-primary-button {
    min-width: 190px;
    white-space: nowrap;
}

.listing-review-primary-form {
    margin: 0;
}

.listing-review-primary-button[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.listing-review-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.listing-review-secondary-actions form {
    margin: 0;
}

.listing-review-secondary-actions .button {
    min-height: 46px;
}

.listing-review-secondary-actions .button-danger-outline {
    margin-left: auto;
}

@media (max-width: 760px) {
    .listing-review-warning,
    .listing-review-primary-action {
        grid-template-columns: 1fr;
    }

    .listing-review-warning-button,
    .listing-review-primary-button,
    .listing-review-primary-form {
        width: 100%;
        min-width: 0;
    }

    .listing-review-secondary-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .listing-review-secondary-actions form,
    .listing-review-secondary-actions .button {
        width: 100%;
    }

    .listing-review-secondary-actions .button-danger-outline {
        margin-left: 0;
    }
}
