.auto724-afd {
    width: 100%;
}

.auto724-afd-trigger {
    width: 100%;
    margin-top: 0;
    height: 48px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #81bc30;
    border-radius: var(--a724-radius-lg);
    background: #81bc30;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.auto724-afd-trigger:hover,
.auto724-afd-trigger:focus {
    background: #95ca4a;
    border-color: #95ca4a;
    color: #fff;
    outline: none;
}

.auto724-afd-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 20, 47, 0.68);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.auto724-afd-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: var(--a724-radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, var(--a724-slate-050) 100%);
    box-shadow: var(--a724-shadow-lg);
}

.auto724-afd-grid {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(480px, 1.22fr);
    min-height: 100%;
}

.auto724-afd-side {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 30%),
        linear-gradient(135deg, var(--a724-navy-900) 0%, var(--a724-navy-700) 100%);
    color: #fff;
    padding: 24px 24px;
    border-radius: var(--a724-radius-xl) 0 0 var(--a724-radius-xl);
}

.auto724-afd-side::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    filter: blur(4px);
}

.auto724-afd-side-inner {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.auto724-afd-title {
    margin: 0;
    color: #fff;
    font-size: var(--a724-heading-dialog-size);
    line-height: 1.06;
    font-weight: var(--a724-font-weight-heading);
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.auto724-afd-copy {
    margin-top: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    line-height: 1.55;
}

.auto724-afd-help {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--a724-radius-lg);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    display: grid;
    gap: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.auto724-afd-help-media {
    overflow: hidden;
    border: 0;
    border-radius: var(--a724-radius-md);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto724-afd-help-media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 240px;
    height: auto;
    object-fit: contain;
    border-radius: var(--a724-radius-md);
    margin: 0 auto;
}

.auto724-afd-help-copy {
    color: rgba(255,255,255,0.92);
}

.auto724-afd-form-side {
    padding: 16px 16px 16px 12px;
    display: flex;
    align-items: stretch;
}

.auto724-afd-form-panel {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--a724-slate-100);
    border-radius: var(--a724-radius-lg);
    background: #fff;
    box-shadow: var(--a724-shadow-md);
}

.auto724-afd-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--a724-slate-200);
    border-radius: var(--a724-radius-md);
    background: #fff;
    color: var(--a724-navy-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.auto724-afd-close:hover,
.auto724-afd-close:focus {
    background: var(--a724-orange-500);
    border-color: var(--a724-orange-500);
    color: #fff;
    outline: none;
}

.auto724-afd-close span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .auto724-afd-overlay {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
    }

    .auto724-afd-dialog {
        width: 100%;
        max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .auto724-afd-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        z-index: 4;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(12, 24, 58, 0.16);
    }
}

.auto724-afd-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auto724-afd-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auto724-afd-field label {
    color: var(--a724-navy-900);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.auto724-afd-input,
.auto724-afd-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--a724-slate-200);
    border-radius: var(--a724-radius-md);
    background: #fff;
    color: var(--a724-slate-700);
    font-size: 15px;
    outline: none;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auto724-afd-input {
    min-height: 40px;
    padding: 0 12px;
}

.auto724-afd-textarea {
    min-height: 58px;
    max-height: 58px;
    padding: 8px 12px;
    resize: none;
}

.auto724-afd-input::placeholder,
.auto724-afd-textarea::placeholder {
    color: #7b869d;
}

.auto724-afd-input:focus,
.auto724-afd-textarea:focus {
    border-color: var(--a724-orange-500);
    box-shadow: 0 0 0 4px rgba(243, 146, 43, 0.14);
}

.auto724-afd-file {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px dashed var(--a724-slate-300);
    border-radius: var(--a724-radius-md);
    background: var(--a724-slate-050);
    color: var(--a724-slate-700);
    font-size: 12px;
}

.auto724-afd-file::file-selector-button {
    margin-right: 10px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--a724-orange-600);
    border-radius: var(--a724-radius-lg);
    background: var(--a724-orange-600);
    color: var(--a724-navy-900);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.auto724-afd-file:hover::file-selector-button {
    background: var(--a724-orange-500);
    border-color: var(--a724-orange-500);
    color: var(--a724-navy-900);
}

.auto724-afd-file::-webkit-file-upload-button {
    margin-right: 10px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--a724-orange-600);
    border-radius: var(--a724-radius-lg);
    background: var(--a724-orange-600);
    color: var(--a724-navy-900);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.auto724-afd-file:hover::-webkit-file-upload-button {
    background: var(--a724-orange-500);
    border-color: var(--a724-orange-500);
    color: var(--a724-navy-900);
}

.auto724-afd-field-note {
    margin-top: 0;
    color: var(--a724-slate-500);
    font-size: 11px;
    line-height: 1.35;
}

.auto724-afd-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--a724-slate-150);
    border-radius: var(--a724-radius-md);
    background: var(--a724-slate-050);
}

.auto724-afd-consent input[type="checkbox"] {
    margin-top: 0;
    accent-color: var(--a724-navy-900);
}

.auto724-afd-consent-text {
    color: var(--a724-slate-700);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 0;
}

.auto724-afd-consent-text a {
    color: var(--a724-orange-600);
    font-weight: 700;
    text-decoration: none;
}

.auto724-afd-consent-text a:hover {
    color: var(--a724-orange-500);
    text-decoration: underline;
}

.auto724-afd-turnstile {
    margin-top: 0;
}

.auto724-afd-message {
    padding: 8px 10px;
    border-radius: var(--a724-radius-md);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.auto724-afd-message.-success {
    border: 1px solid #b7e2c3;
    background: #f0fbf3;
    color: #17613c;
}

.auto724-afd-message.-error {
    border: 1px solid #f3c4c4;
    background: #fff4f4;
    color: #b42318;
}

.auto724-afd-actions {
    margin-top: 0;
}

.auto724-afd-submit {
    width: 100%;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--a724-orange-600);
    border-radius: var(--a724-radius-lg);
    background: var(--a724-orange-600);
    color: var(--a724-navy-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, opacity .18s ease, color .18s ease;
}

.auto724-afd-submit:hover,
.auto724-afd-submit:focus {
    background: var(--a724-orange-500);
    border-color: var(--a724-orange-500);
    color: var(--a724-navy-900);
    outline: none;
}

.auto724-afd-submit:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 980px) {
    .auto724-afd-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 18px;
    }

    .auto724-afd-dialog {
        max-height: none;
        border-radius: var(--a724-radius-xl);
    }

    .auto724-afd-grid {
        grid-template-columns: 1fr;
    }

    .auto724-afd-side {
        padding: 18px 18px 14px;
        border-radius: var(--a724-radius-xl) var(--a724-radius-xl) 0 0;
    }

    .auto724-afd-side-inner {
        max-width: none;
    }

    .auto724-afd-help {
        grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        margin-top: 10px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .auto724-afd-help-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .auto724-afd-help-media {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
    }

    .auto724-afd-help-media img {
        max-height: 150px;
        margin: 0;
    }

    .auto724-afd-form-side {
        padding: 14px 18px 18px;
    }

    .auto724-afd-form-panel {
        padding: 14px;
        border-radius: var(--a724-radius-lg);
    }

    .auto724-afd-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .auto724-afd-trigger {
        min-height: 46px;
        padding: 0 16px;
        border-radius: var(--a724-radius-lg);
        font-size: 13px;
    }

    .auto724-afd-overlay {
        padding: 12px;
    }

    .auto724-afd-dialog {
        border-radius: var(--a724-radius-xl);
    }

    .auto724-afd-side {
        padding: 14px 12px 12px;
        border-radius: var(--a724-radius-xl) var(--a724-radius-xl) 0 0;
    }

    .auto724-afd-form-side {
        padding: 12px;
    }

    .auto724-afd-form-panel {
        padding: 14px 12px;
        border-radius: var(--a724-radius-lg);
    }

    .auto724-afd-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        border-radius: var(--a724-radius-md);
    }

    .auto724-afd-title {
        font-size: 20px;
        padding-right: 52px;
    }

    .auto724-afd-copy,
    .auto724-afd-help {
        font-size: 13px;
        line-height: 1.55;
    }

    .auto724-afd-help {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 10px;
    }

    .auto724-afd-help-media img {
        max-height: 124px;
    }

    .auto724-afd-input,
    .auto724-afd-textarea,
    .auto724-afd-file,
    .auto724-afd-submit {
        font-size: 14px;
    }
}

.auto724-afd-file::file-selector-button,
.auto724-afd-file::-webkit-file-upload-button,
.auto724-afd-submit,
.auto724-afd-trigger {
    letter-spacing: .01em;
}
