/* [admax_contact_form] — kapcsolat űrlap. */

.contact__form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact__form.is-hidden {
    display: none;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact__input,
.contact__select,
.contact__textarea {
    background: #ffffff;
    border: 1.5px solid #dbeae3;
    border-radius: 13px;
    padding: 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.contact__input:focus,
.contact__select:focus,
.contact__textarea:focus {
    border-color: #2c8b74;
}

.contact__input.is-error,
.contact__select.is-error,
.contact__textarea.is-error {
    border-color: #d64545;
}

.contact__select {
    color: #8ba49b;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c7b73' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contact__select.is-selected {
    color: inherit;
}

.contact__textarea {
    resize: vertical;
}

.contact__fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact__legend {
    font-size: 12px;
    font-weight: 700;
    color: #5c7b73;
    margin: 0 0 2px;
}

.contact__fieldset.is-error .contact__legend {
    color: #b3261e;
}

.contact__submit {
    background: #1e3a38;
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 16px;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background 0.3s;
}

.contact__submit:hover {
    background: #2c8b74;
}

/* GDPR pipa + extra checkboxok. */
.contact__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #5c7b73;
    cursor: pointer;
}

.contact__check input {
    margin-top: 1px;
    width: 16px;
    height: 16px;
    flex: none;
    accent-color: #2c8b74;
}

.contact__check.is-error input {
    outline: 2px solid #d64545;
}

.contact__check a,
.contact__privacy-link {
    color: #2c8b74;
}

/* Honeypot (botoknak). */
.contact__hp {
    position: absolute;
    left: -9999px;
}

/* Visszajelzés. */
.contact__feedback {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
}

.contact__feedback--success {
    background: #e7f6f0;
    color: #1e7a5f;
}

.contact__feedback--error {
    background: #fdeceb;
    color: #b3261e;
}

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

    .contact__input,
    .contact__select,
    .contact__textarea {
        padding: 12px;
    }

    .contact__submit {
        padding: 14px;
        width: 100%;
    }
}

/* Konzultációs űrlap (naptár + chips + napszak) — nyers, kártya nélkül. */
.contact__form--kons {
    gap: 0;
}

.am-kons-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.am-kons-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 23px;
    letter-spacing: -0.02em;
}

.am-kons-time {
    font-size: 13px;
    color: #5c7b73;
    font-weight: 600;
}

.am-kons-label,
.am-kons-legend {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c7b73;
    margin: 0 0 8px;
}

.am-kons-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.contact__form--kons .contact__form-row {
    margin-bottom: 16px;
}

.contact__form--kons .am-kons-block {
    margin: 22px 0 6px;
}

.am-kons-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.am-kons-chip,
.am-kons-day,
.am-kons-slot {
    position: relative;
    cursor: pointer;
}

.am-kons-chip input,
.am-kons-day input,
.am-kons-slot input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.am-kons-chip span {
    display: inline-block;
    border: 1.5px solid #dbeae3;
    background: #ffffff;
    border-radius: 100px;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 600;
    color: #5c7b73;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.am-kons-chip:hover span {
    border-color: #5fbda8;
    color: #16332e;
}

.am-kons-chip input:checked + span {
    background: #1e3a38;
    border-color: #1e3a38;
    color: #fff;
}

.am-kons-naptar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.am-kons-naptar-head .am-kons-legend {
    margin: 0;
}

.am-kons-month {
    font-size: 13px;
    font-weight: 700;
    color: #2c8b74;
}

.am-kons-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    padding: 4px 0 0;
}

.am-kons-day {
    flex: none;
    width: 72px;
    box-sizing: border-box;
    border: 1.5px solid #dbeae3;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 6px 13px;
    text-align: center;
    transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.16, 0.84, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.am-kons-day:hover {
    border-color: #5fbda8;
    transform: translateY(-3px);
}

.am-kons-day:has(input:checked) {
    background: #1e3a38;
    border-color: #1e3a38;
    box-shadow: 0 14px 30px rgba(30, 58, 56, 0.24);
    transform: translateY(-3px);
}

.am-kons-day-dow,
.am-kons-day-mon {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c7b73;
}

.am-kons-day-mon {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 5px;
}

.am-kons-day-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #16332e;
    margin: 5px 0 0;
    display: block;
}

.am-kons-day:has(input:checked) .am-kons-day-dow,
.am-kons-day:has(input:checked) .am-kons-day-mon {
    color: #a7ebdd;
}

.am-kons-day:has(input:checked) .am-kons-day-num {
    color: #fff;
}

.am-kons-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.am-kons-slot {
    display: block;
    border: 1.5px solid #dbeae3;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.am-kons-slot:hover {
    border-color: #5fbda8;
}

.am-kons-slot:has(input:checked) {
    background: #e3f3ec;
    border-color: #2c8b74;
    box-shadow: 0 0 0 3px rgba(44, 139, 116, 0.1);
}

.am-kons-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.am-kons-slot-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #16332e;
}

.am-kons-slot:has(input:checked) .am-kons-slot-title {
    color: #1e3a38;
}

.am-kons-slot-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #dbeae3;
    flex: none;
}

.am-kons-slot:has(input:checked) .am-kons-slot-dot {
    border-color: #2c8b74;
    background: #2c8b74;
}

.am-kons-slot-range {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5c7b73;
    margin-top: 4px;
}

.am-kons-slot:has(input:checked) .am-kons-slot-range {
    color: #2c8b74;
}

.am-kons-summary {
    margin-top: 24px;
    background: #e3f3ec;
    border: 1px solid #dbeae3;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #16332e;
    line-height: 1.5;
}

.contact__form--kons .contact__check--gdpr {
    margin-top: 20px;
}

.am-kons-submit {
    margin-top: 24px;
    width: 100%;
    border-radius: 100px;
    font-size: 16px;
    padding: 19px 32px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 16px 36px rgba(30, 58, 56, 0.22);
}

.am-kons-note {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #5c7b73;
    font-weight: 500;
}

.am-kons-ok {
    text-align: center;
    padding: 50px 10px 40px;
}

.am-kons-ok-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e3f3ec;
    border: 1.5px solid #5fbda8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #2c8b74;
    font-size: 30px;
    font-weight: 800;
}

.am-kons-ok-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.am-kons-ok-text {
    font-size: 16px;
    color: #5c7b73;
    font-weight: 500;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 26px;
}

.am-kons-ok-btn {
    display: inline-block;
    text-decoration: none;
    border: 1.5px solid #1e3a38;
    background: transparent;
    color: #1e3a38;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 100px;
}

.contact__form--kons .contact__fieldset.is-error .am-kons-legend {
    color: #b3261e;
}

@media (max-width: 767px) {
    .am-kons-title {
        font-size: 20px;
    }

    .am-kons-slots {
        grid-template-columns: 1fr;
    }

    .am-kons-day {
        width: 64px;
        padding: 10px 4px 11px;
    }

    .am-kons-ok-title {
        font-size: 22px;
    }
}
