.sc-form-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.sc-form {
    background: rgba(13, 19, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sc-field-full {
    grid-column: 1 / -1;
}

.sc-field label,
.sc-field legend {
    color: #e8eef8;
    font-weight: 600;
    font-size: 0.92rem;
}

.sc-optional {
    color: #8ea0b8;
    font-weight: 500;
}

.sc-req {
    color: #00d9ff;
}

.sc-form input[type="text"],
.sc-form input[type="email"],
.sc-form input[type="tel"],
.sc-form input[type="search"],
.sc-form select,
.sc-form textarea {
    width: 100%;
    background: rgba(8, 12, 23, 0.9);
    border: 1px solid rgba(45, 130, 254, 0.28);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
}

.sc-form textarea {
    resize: vertical;
    min-height: 140px;
}

.sc-form input:focus,
.sc-form select:focus,
.sc-form textarea:focus {
    outline: 2px solid rgba(0, 217, 255, 0.45);
    border-color: #2d82fe;
}

.sc-form .sc-phone input:focus {
    outline: none;
}

.sc-hint {
    color: #8ea0b8;
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

.sc-radios {
    display: flex;
    gap: 1rem;
}

.sc-radio,
.sc-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #d5deea;
    font-weight: 500;
}

.sc-counter {
    text-align: right;
    color: #8ea0b8;
    font-size: 0.8rem;
}

.sc-error {
    color: #ff8a9b;
    font-size: 0.85rem;
    margin: 0;
}

.sc-alert {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
}

.sc-alert-success {
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.35);
    color: #d9f7ff;
}

.sc-alert-error {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ffd6dc;
}

.sc-turnstile {
    margin: 1rem 0;
}

.sc-submit {
    width: 100%;
    margin-top: 0.4rem;
}

.sc-submit.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.sc-legal {
    margin: 1rem 0 0;
    color: #8ea0b8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.sc-legal a {
    color: #00d9ff;
}

.sc-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sc-phone {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    background: rgba(8, 12, 23, 0.9);
    border: 1px solid rgba(45, 130, 254, 0.28);
    border-radius: 10px;
}

.sc-phone:focus-within {
    outline: 2px solid rgba(0, 217, 255, 0.45);
    border-color: #2d82fe;
}

.sc-phone-flag {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    min-width: 3.15rem;
    margin: 0;
    padding: 0 0.55rem 0 0.7rem;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
}

.sc-phone-flag:focus-visible {
    outline: 2px solid rgba(0, 217, 255, 0.7);
    outline-offset: -3px;
}

.sc-phone-flag-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.sc-phone-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #8ea0b8;
}

.sc-form .sc-phone-dial {
    flex: 0 0 auto;
    width: 4.6rem !important;
    min-width: 3.4rem;
    margin: 0;
    padding: 0.75rem 0.2rem 0.75rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #00d9ff !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.sc-phone-divider {
    width: 1px;
    margin: 0.55rem 0.15rem;
    background: rgba(45, 130, 254, 0.35);
    flex: 0 0 auto;
}

.sc-form .sc-phone-national {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0.75rem 0.9rem 0.75rem 0.7rem !important;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    background: transparent !important;
}

.sc-country-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-width: 100%;
    background: #0d1321;
    border: 1px solid rgba(45, 130, 254, 0.35);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sc-country-panel input[type="search"] {
    margin-bottom: 0.4rem;
}

.sc-country-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(240px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sc-country-panel li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    color: #e8eef8;
    font-size: 0.9rem;
}

.sc-country-panel li[aria-selected="true"],
.sc-country-panel li:hover,
.sc-country-panel li:focus {
    background: rgba(45, 130, 254, 0.18);
    outline: none;
}

.sc-country-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-country-dial {
    color: #00d9ff;
    font-weight: 600;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sc-field.has-error input[type="text"],
.sc-field.has-error input[type="email"],
.sc-field.has-error input[type="tel"],
.sc-field.has-error select,
.sc-field.has-error textarea {
    border-color: #ff5c75;
    box-shadow: 0 0 0 1px rgba(255, 92, 117, 0.35);
}

.sc-phone.has-error,
.sc-field.has-error .sc-phone {
    border-color: #ff5c75;
}

.sc-phone.has-error:focus-within,
.sc-field.has-error .sc-phone:focus-within {
    outline-color: rgba(255, 92, 117, 0.55);
    border-color: #ff5c75;
}

.sc-field.has-error .sc-radio,
.sc-field.has-error .sc-check {
    color: #ffd6dc;
}

.sc-turnstile.has-error {
    border: 1px solid #ff5c75;
    border-radius: 10px;
    padding: 0.6rem;
}

.sc-consent.has-error {
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 92, 117, 0.55);
}

@media (max-width: 767px) {
    .sc-grid {
        grid-template-columns: 1fr;
    }

    .sc-form {
        padding: 1.15rem;
    }

    .sc-phone-flag {
        min-width: 2.9rem;
        padding-left: 0.55rem;
    }

    .sc-phone-dial {
        width: 4.2rem;
    }
}
