/**
 * KhabarYar frontend — GW Checkout design language.
 */

.gwky-form-wrap {
    --gwky-c-blue: #000b99;
    --gwky-c-blue-2: #1624b8;
    --gwky-c-red: #ec1c24;
    --gwky-c-text: #101426;
    --gwky-c-muted: #686d7d;
    --gwky-c-line: #e7e9f2;
    --gwky-c-field-bg: #fbfbfd;
    --gwky-c-card: #fff;

    margin: 1.5em 0;
}

.gwky-form {
    margin-bottom: 12px;
}

/* ---- Toggle: full-width, gradient primary ---- */

.gwky-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--gwky-c-blue), var(--gwky-c-blue-2));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 10px 24px rgba(0, 11, 153, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.gwky-toggle:hover,
.gwky-toggle:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(0, 11, 153, 0.22);
}

.gwky-toggle .gwky-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

/* Secondary (sale) button: outlined card style */

.gwky-toggle-sale {
    background: var(--gwky-c-card);
    border: 1px solid var(--gwky-c-line);
    color: #33384a;
    box-shadow: none;
}

.gwky-toggle-sale:hover,
.gwky-toggle-sale:focus-visible {
    border-color: #cfd3ff;
    background: #fbfbff;
    color: var(--gwky-c-blue);
    transform: translateY(-1px);
    box-shadow: none;
}

/* ---- Fields panel ---- */

.gwky-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
    padding: 16px;
    border: 1px solid var(--gwky-c-line);
    border-radius: 14px;
    background: var(--gwky-c-card);
}

.gwky-contact {
    grid-column: 1 / -1;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--gwky-c-line);
    border-radius: 10px !important;
    background: var(--gwky-c-field-bg);
    color: var(--gwky-c-text);
    font-size: 12px;
    line-height: 44px;
    direction: ltr;
    text-align: left;
    outline: 0;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.gwky-contact::placeholder {
    color: #9aa0ae;
}

.gwky-contact:focus {
    border-color: #bbc1ff;
    background: var(--gwky-c-card);
    box-shadow: 0 0 0 4px rgba(0, 11, 153, 0.05);
}

.gwky-form.is-err .gwky-contact {
    border-color: #ffc2c5;
    background: #fff8f8;
}

/* Honeypot: off-screen, never display:none */

.gwky-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Submit ---- */

.gwky-submit {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gwky-c-blue), var(--gwky-c-blue-2));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 11, 153, 0.16);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gwky-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(0, 11, 153, 0.2);
}

.gwky-submit.is-busy,
.gwky-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ---- Message ---- */

.gwky-msg {
    grid-column: 1 / -1;
    margin: 0;
    min-height: 1.4em;
    font-size: 11px;
    line-height: 1.9;
}

.gwky-msg.is-ok {
    color: #0a8f3c;
    font-size: 12px;

}

.gwky-msg.is-err {
    color: var(--gwky-c-red);
    font-size: 12px;
}

.gwky-form.is-done .gwky-contact,
.gwky-form.is-done .gwky-submit {
    opacity: 0.65;
}

@media (max-width: 560px) {
    .gwky-fields {
        padding: 13px;
    }
}

/* Live validation feedback (bug #31) */

.gwky-form.is-ok .gwky-contact {
    border-color: #9fdcae;
    background: #f6fff9;
}