/* Amazon Masterclass Leads - Frontend */
.aml-section,
.aml-section * {
    box-sizing: border-box;
}

.aml-section {
    --aml-primary: #ffbf45;
    width: 100%;
    padding: clamp(24px, 5vw, 64px) 16px;
    font-family: inherit;
    background: transparent;
}

.aml-card {
    position: relative;
    isolation: isolate;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(18px, 4vw, 46px);
    align-items: center;
    padding: clamp(26px, 5vw, 58px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--aml-primary) 24%, transparent), transparent 30%),
        radial-gradient(circle at 94% 100%, rgba(255, 191, 69, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff9eb 52%, #ffffff 100%);
    box-shadow: 0 22px 70px rgba(18, 18, 18, 0.10);
    border: 1px solid rgba(255, 191, 69, 0.36);
}

.aml-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0) 45%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 191, 69, 0.08) 0,
            rgba(255, 191, 69, 0.08) 1px,
            transparent 1px,
            transparent 16px
        );
    opacity: .55;
    z-index: -1;
}

.aml-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    inset-inline-end: -120px;
    top: -140px;
    border-radius: 50%;
    background: var(--aml-primary);
    opacity: 0.18;
    filter: blur(18px);
    pointer-events: none;
}

.aml-logo {
    display: block;
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 18px;
}

.aml-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--aml-primary) 22%, #ffffff);
    color: #1f1f1f;
    border: 1px solid rgba(255, 191, 69, 0.48);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0;
    box-shadow: 0 8px 22px rgba(255, 191, 69, .20);
}

.aml-content h2 {
    margin: 0;
    color: #161616;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.aml-content p {
    margin: 16px 0 0;
    color: #555555;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.aml-form {
    width: 100%;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 191, 69, 0.34);
    box-shadow: 0 18px 42px rgba(18, 18, 18, 0.08);
    backdrop-filter: blur(14px);
}

.aml-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 12px 28px rgba(18, 18, 18, 0.08);
}

.aml-input-row:focus-within {
    border-color: var(--aml-primary);
    box-shadow: 0 14px 30px rgba(255, 191, 69, 0.22);
}

.aml-input-row input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 18px !important;
    color: #171717 !important;
    font-size: 15px !important;
    box-shadow: none !important;
    min-height: 50px;
}

.aml-input-row input::placeholder {
    color: #8b8b8b;
}

.aml-input-row button {
    flex: 0 0 auto;
    border: 0 !important;
    min-height: 50px;
    padding: 0 26px !important;
    border-radius: 999px !important;
    background: var(--aml-primary) !important;
    color: #171717 !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 10px 22px rgba(255, 191, 69, 0.32);
    white-space: nowrap;
}

.aml-input-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 191, 69, 0.42);
}

.aml-input-row button:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.aml-message {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 800;
}

.aml-message.is-success {
    display: block;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.aml-message.is-error {
    display: block;
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 800px) {
    .aml-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
        text-align: center;
    }

    .aml-card::before {
        border-radius: 24px;
    }

    .aml-logo {
        margin-inline: auto;
    }

    .aml-badge {
        margin-inline: auto;
    }

    .aml-input-row {
        flex-direction: column;
        border-radius: 22px;
        padding: 10px;
    }

    .aml-input-row input {
        min-height: 54px;
        text-align: center;
        padding: 0 12px !important;
    }

    .aml-input-row button {
        width: 100%;
        min-height: 54px;
    }
}
