/* gymkhana.css — стили виджета записи на тренировку по джимхане */
/* Дизайн-переменные идентичны основному виджету pitermotofest */

:root {
    --t-headline-font: 'Wadik', Arial, sans-serif;
    --t-text-font: 'Commissioner', Arial, sans-serif;
    --primary-yellow: #ffc546;
    --dark-bg: #0f0f0f;
    --form-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--t-text-font, Arial, sans-serif);
    background: var(--dark-bg, #0f0f0f);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.gk-section {
    width: 100%;
    background: var(--dark-bg, #0f0f0f);
    padding: 60px 0 80px;
}

.gk-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ── Шапка ── */
.gk-head {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}
.gk-head__title {
    font-family: var(--t-headline-font, sans-serif);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}
.gk-note__title {
    font-family: var(--t-text-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-yellow, #ffc546);
    margin-bottom: 16px;
}
.gk-note__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gk-note__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #d8d8d8;
}
.gk-note__list li::before {
    content: '/';
    position: absolute;
    left: 0;
    color: var(--primary-yellow, #ffc546);
    font-weight: 600;
}

/* ── Слоты ── */
.gk-slots {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 12px;
}
.gk-slots__loading {
    grid-column: 1 / -1;
    color: #888;
    padding: 20px 0;
}
.gk-slot {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: 1px solid var(--primary-yellow, #ffc546);
    border-radius: 10px;
    padding: 20px 26px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-align: left;
    width: 100%;
    color: #fff;
    font-family: inherit;
}
.gk-slot:hover:not(.gk-slot--full) {
    background: rgba(255, 197, 70, 0.08);
}
.gk-slot.is-selected {
    background: rgba(255, 197, 70, 0.16);
    box-shadow: inset 0 0 0 1px var(--primary-yellow, #ffc546);
}
.gk-slot--full {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #555;
}
.gk-slot__check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-yellow, #ffc546);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}
.gk-slot.is-selected .gk-slot__check::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid var(--primary-yellow, #ffc546);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.gk-slot__date {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.gk-slot__time {
    font-size: 22px;
    white-space: nowrap;
}
.gk-slot__free {
    margin-left: auto;
    font-size: 15px;
    color: #bbb;
    white-space: nowrap;
}

/* ── Форма ── */
.gk-form {
    background: var(--form-bg, #fff);
    border-radius: 4px;
    padding: 40px;
    margin-top: 24px;
    color: #0f0f0f;
}
.gk-form__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.gk-field__label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.gk-field__input {
    width: 100%;
    height: 52px;
    border: none;
    border-bottom: 1.5px solid #d0d0d0;
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    color: #0f0f0f;
    padding: 0 4px;
    transition: border-color 0.15s;
}
.gk-field__input:focus {
    outline: none;
    border-bottom-color: var(--primary-yellow, #ffc546);
}
.gk-field--error .gk-field__input {
    border-bottom-color: #e23b3b;
    background: rgba(226, 59, 59, 0.04);
}

/* ── Чекбоксы ── */
.gk-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}
.gk-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.gk-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.gk-check__box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1.5px solid #b0b0b0;
    border-radius: 3px;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.gk-check input:checked + .gk-check__box {
    background: var(--primary-yellow, #ffc546);
    border-color: var(--primary-yellow, #ffc546);
}
.gk-check input:checked + .gk-check__box::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid #0f0f0f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.gk-check__text {
    font-size: 13px;
    line-height: 1.45;
    color: #333;
}
.gk-check__text a { color: #0f0f0f; text-decoration: underline; }
.gk-check--error .gk-check__box {
    border-color: #e23b3b;
    box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.12);
}

/* ── Футер формы ── */
.gk-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.gk-form__msg {
    font-size: 14px;
    color: #e23b3b;
    flex: 1 1 auto;
}
.gk-submit {
    background: var(--primary-yellow, #ffc546);
    color: #0f0f0f;
    border: none;
    border-radius: 6px;
    font-family: var(--t-headline-font, sans-serif);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 48px;
    height: 64px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.gk-submit:hover:not(:disabled) { background: #fff; }
.gk-submit:disabled { opacity: 0.6; cursor: default; }

.gk-field-error {
    color: #e23b3b;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ── Экран успеха ── */
.gk-success__banner {
    background: var(--primary-yellow, #ffc546);
    border-radius: 6px;
    padding: 70px 40px;
    text-align: center;
    color: #0f0f0f;
}
.gk-success__title {
    font-family: var(--t-headline-font, sans-serif);
    font-weight: 400;
    font-size: 48px;
    text-transform: uppercase;
    margin: 0 0 24px;
}
.gk-success__text {
    font-size: 16px;
    line-height: 1.5;
    margin: 6px 0;
}
.gk-success__text a { color: #0f0f0f; }

/* ── Адаптив ── */
@media (max-width: 1100px) {
    .gk-head { grid-template-columns: 1fr; gap: 30px; }
    .gk-head__title { font-size: 32px; }
    .gk-form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .gk-wrap { padding: 0 16px; }
    .gk-section { padding: 36px 0 50px; }
    .gk-slots { grid-template-columns: 1fr; }
    .gk-slot { padding: 16px 18px; gap: 12px; }
    .gk-slot__date, .gk-slot__time { font-size: 17px; }
    .gk-slot__free { font-size: 13px; }
    .gk-form { padding: 24px 18px; }
    .gk-form__footer { flex-direction: column; align-items: stretch; }
    .gk-submit { width: 100%; }
    .gk-success__title { font-size: 30px; }
    .gk-head__title { font-size: 26px; }
}
