:root {
    --slc-navy-950: #081a2d;
    --slc-navy-900: #0d2741;
    --slc-navy-800: #123653;
    --slc-gold-500: #d6a94d;
    --slc-gold-400: #e4bf70;
    --slc-cream-50: #fffdf7;
    --slc-cream-100: #f8f3e8;
    --slc-text: #132238;
    --slc-muted: #6b7787;
    --slc-border: #e8e2d7;
    --slc-danger: #b42318;
    --slc-danger-bg: #fff2f0;
}

html:has(body.slc-standalone-page) {
    margin-top: 0 !important;
    background: var(--slc-navy-950);
}

body.slc-standalone-page {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(214, 169, 77, 0.18), transparent 28%),
        radial-gradient(circle at 88% 84%, rgba(76, 139, 180, 0.18), transparent 30%),
        linear-gradient(145deg, var(--slc-navy-950), var(--slc-navy-900) 55%, #102f49);
    color: var(--slc-text);
    font-family: Vazirmatn, IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
}

body.slc-standalone-page * {
    box-sizing: border-box;
}

.slc-page-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 32px 18px;
    overflow: hidden;
}

body.admin-bar .slc-page-shell {
    min-height: calc(100svh - 32px);
}

.slc-background-shape {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.slc-shape-one {
    width: 430px;
    height: 430px;
    top: -230px;
    right: -130px;
    box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.03);
}

.slc-shape-two {
    width: 300px;
    height: 300px;
    bottom: -170px;
    left: -90px;
    box-shadow: inset 0 0 80px rgba(214, 169, 77, 0.05);
}

.slc-form-wrap {
    width: min(100%, 480px);
    margin: 0 auto;
    direction: rtl;
}

.slc-form-card {
    position: relative;
    overflow: hidden;
    padding: 38px 36px 30px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 28px;
    background: rgba(255, 253, 247, 0.97);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32), 0 2px 0 rgba(255, 255, 255, 0.75) inset;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.slc-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--slc-gold-500), #f0d99b, var(--slc-gold-500));
}

.slc-brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid rgba(214, 169, 77, 0.35);
    border-radius: 18px;
    background: linear-gradient(145deg, #fffaf0, #f3e7cf);
    box-shadow: 0 10px 24px rgba(13, 39, 65, 0.1);
}

.slc-brand-mark span {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid var(--slc-navy-900);
    border-radius: 8px;
    transform: rotate(45deg);
}

.slc-brand-mark span::after {
    position: absolute;
    width: 6px;
    height: 6px;
    top: 6px;
    right: 6px;
    border-radius: 50%;
    background: var(--slc-gold-500);
    content: '';
}

.slc-eyebrow {
    margin: 0 0 8px;
    color: #9b742b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.slc-form-card h1 {
    margin: 0;
    color: var(--slc-navy-950);
    font-size: clamp(25px, 5vw, 31px);
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

.slc-form-intro {
    max-width: 360px;
    margin: 12px auto 26px;
    color: var(--slc-muted);
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

.slc-form {
    display: grid;
    gap: 18px;
    margin: 0;
}

.slc-field {
    display: grid;
    gap: 8px;
}

.slc-field label {
    margin: 0;
    color: var(--slc-text);
    font-size: 14px;
    font-weight: 800;
}

.slc-input-shell {
    position: relative;
}

.slc-input-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #87909d;
    pointer-events: none;
    transform: translateY(-50%);
}

.slc-input-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.slc-form input[type='text'],
.slc-form input[type='tel'] {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 48px 0 16px;
    border: 1px solid var(--slc-border);
    border-radius: 15px;
    outline: none;
    background: #fff;
    color: var(--slc-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.slc-form input[type='tel'] {
    direction: ltr;
    text-align: left;
}

.slc-form input::placeholder {
    color: #a8afb8;
    font-weight: 400;
}

.slc-form input:focus {
    border-color: var(--slc-gold-500);
    box-shadow: 0 0 0 4px rgba(214, 169, 77, 0.14);
    transform: translateY(-1px);
}

.slc-field small {
    margin: 0 4px;
    color: #7c8795;
    font-size: 12px;
    line-height: 1.7;
}

.slc-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #f1b8b2;
    border-radius: 13px;
    background: var(--slc-danger-bg);
    color: var(--slc-danger);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.slc-message span {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    place-items: center;
    border-radius: 50%;
    background: var(--slc-danger);
    color: #fff;
    font-size: 12px;
}

.slc-submit-button {
    display: flex;
    width: 100%;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--slc-navy-900), var(--slc-navy-800));
    box-shadow: 0 14px 28px rgba(13, 39, 65, 0.24);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.slc-submit-button svg {
    width: 21px;
    height: 21px;
    fill: var(--slc-gold-400);
}

.slc-submit-button:hover {
    box-shadow: 0 18px 34px rgba(13, 39, 65, 0.3);
    filter: brightness(1.07);
    transform: translateY(-2px);
}

.slc-submit-button:active {
    box-shadow: 0 8px 18px rgba(13, 39, 65, 0.22);
    transform: translateY(0);
}

.slc-submit-button:focus-visible {
    outline: 3px solid rgba(214, 169, 77, 0.55);
    outline-offset: 3px;
}

.slc-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 20px 0 0;
    color: #76808d;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.slc-privacy-note span {
    display: grid;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #eaf5ee;
    color: #287a49;
    font-size: 11px;
    font-weight: 900;
}

.slc-invalid-card {
    text-align: center;
}

.slc-invalid-card h1 {
    margin-top: 18px;
}

.slc-invalid-card p {
    margin: 12px 0 0;
    color: var(--slc-muted);
    line-height: 1.9;
}

.slc-status-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--slc-danger-bg);
    color: var(--slc-danger);
    font-size: 26px;
    font-weight: 900;
}

@media (max-width: 782px) {
    body.admin-bar .slc-page-shell {
        min-height: calc(100svh - 46px);
    }
}

@media (max-width: 540px) {
    .slc-page-shell {
        align-items: center;
        padding: 18px 13px;
    }

    .slc-form-card {
        padding: 31px 21px 24px;
        border-radius: 23px;
    }

    .slc-form-intro {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .slc-form input[type='text'],
    .slc-form input[type='tel'],
    .slc-submit-button {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slc-form input,
    .slc-submit-button {
        transition: none;
    }
}
