/*
Theme Name: Nyeregillesztes Elementor
Theme URI: https://nyeregillesztes.hu
Description: Hello Elementor child theme for Nyeregillesztes.
Author: Nyeregillesztes
Author URI: https://nyeregillesztes.hu
Template: hello-elementor
Version: 1.0.0
Text Domain: nyeregillesztes-elementor
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --nyc-bg: #f5f5f2;
    --nyc-surface: #ffffff;
    --nyc-text: #232822;
    --nyc-muted: #6a7068;
    --nyc-green: #375444;
    --nyc-green-soft: #4a6657;
    --nyc-bronze: #8e7a5e;
    --nyc-line: #ddded7;
    --nyc-success-bg: #edf4ef;
    --nyc-success-text: #2f5a42;
    --nyc-error-bg: #f7ece8;
    --nyc-error-text: #7a332b;
}

.nyc-online-check {
    max-width: 1100px;
    margin: 28px auto;
    padding: 26px;
    border: 1px solid var(--nyc-line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,0)), var(--nyc-bg);
    color: var(--nyc-text);
    font-family: "Inter", "Segoe UI", sans-serif;
}

.nyc-hero {
    padding: 8px 2px 18px;
    border-bottom: 1px solid var(--nyc-line);
    margin-bottom: 8px;
}

.nyc-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--nyc-green);
}

.nyc-online-check h1,
.nyc-online-check h2,
.nyc-online-check h3 {
    margin: 0 0 8px;
    color: #1f2b23;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

.nyc-online-check h1 {
    font-size: clamp(35px, 4.2vw, 52px);
}

.nyc-online-check h2 {
    font-size: clamp(27px, 2.9vw, 36px);
    margin-top: 8px;
}

.nyc-online-check h3 {
    font-size: clamp(21px, 2.2vw, 25px);
}

.nyc-lead {
    margin: 8px 0 0;
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.66;
    color: #313a32;
}

.nyc-alert {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.nyc-alert-success {
    background: var(--nyc-success-bg);
    color: var(--nyc-success-text);
}

.nyc-alert-error {
    background: var(--nyc-error-bg);
    color: var(--nyc-error-text);
}

.nyc-form {
    margin-top: 16px;
    padding-top: 10px;
}

.nyc-wizard-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.nyc-wizard-progress {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 8px;
    min-height: 360px;
}

.nyc-wizard-progress-bar {
    position: absolute;
    left: 23px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #d9dcd4;
    border-radius: 999px;
    overflow: hidden;
}

.nyc-wizard-progress-bar span {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--nyc-green), var(--nyc-bronze));
    transition: height .24s ease;
}

.nyc-wizard-layout > .nyc-wizard-progress .nyc-wizard-progress-bar span {
    width: 100% !important;
}

.nyc-wizard-step {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.nyc-wizard-step strong {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #bfc8be;
    color: #7a8378;
    background: #f7f8f5;
}

.nyc-wizard-step span {
    font-size: 12px;
    color: var(--nyc-muted);
    line-height: 1.28;
    max-width: 100px;
}

.nyc-wizard-step.is-active strong {
    border-color: var(--nyc-green);
    background: var(--nyc-green);
    color: #fff;
}

.nyc-wizard-step.is-active span {
    color: #2e3d34;
    font-weight: 600;
}

.nyc-wizard-step.is-done strong {
    border-color: rgba(142, 122, 94, 0.45);
    background: #f4efe8;
    color: #6a5943;
}

.nyc-wizard-content {
    background: var(--nyc-surface);
    border: 1px solid var(--nyc-line);
    border-radius: 12px;
    padding: 22px;
}

.nyc-wizard-panel {
    animation: nycFadeIn .16s ease;
}

.nyc-grid {
    display: grid;
    gap: 12px;
}

.nyc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nyc-form > div {
    margin-bottom: 12px;
}

.nyc-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2a312b;
}

.nyc-form input[type="text"],
.nyc-form input[type="email"],
.nyc-form input[type="file"],
.nyc-form textarea {
    width: 100%;
    border: 1px solid var(--nyc-line);
    border-radius: 7px;
    padding: 10px 11px;
    background: #fff;
    color: #212721;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.nyc-form input[type="file"] {
    padding: 7px;
}

.nyc-form textarea {
    min-height: 114px;
    resize: vertical;
}

.nyc-form input:focus,
.nyc-form textarea:focus {
    border-color: rgba(55, 84, 68, 0.45);
    box-shadow: 0 0 0 3px rgba(55, 84, 68, 0.09);
    outline: none;
}

.nyc-help {
    margin: 0;
    font-size: 14px;
    color: var(--nyc-muted);
}

.nyc-online-check ul,
.nyc-online-check ol {
    margin-top: 8px;
    padding-left: 20px;
}

.nyc-online-check li {
    margin-bottom: 6px;
    line-height: 1.58;
}

.nyc-photo-list {
    margin-top: 10px;
    columns: 2;
    column-gap: 24px;
}

.nyc-photo-list li {
    break-inside: avoid;
}

.nyc-upload-grid {
    margin-top: 12px;
}

.nyc-highlight {
    padding: 12px 14px;
    border-left: 2px solid var(--nyc-bronze);
    background: #fbfbf9;
}

.nyc-form a {
    color: var(--nyc-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nyc-checks {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}

.nyc-checks label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 500;
}

.nyc-checks input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.nyc-wizard-nav {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.nyc-submit,
.nyc-nav-btn {
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
}

.nyc-nav-btn {
    border: 1px solid var(--nyc-line);
    background: #fff;
    color: #273029;
    cursor: pointer;
}

.nyc-nav-next {
    border-color: rgba(55, 84, 68, 0.35);
    color: var(--nyc-green);
}

.nyc-submit {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--nyc-green), var(--nyc-green-soft));
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(34, 52, 42, 0.16);
    transition: transform .14s ease, box-shadow .14s ease;
}

.nyc-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(34, 52, 42, 0.2);
}

.nyc-spam-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes nycFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .nyc-wizard-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nyc-wizard-progress {
        position: relative;
        top: 0;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding-left: 0;
    }

    .nyc-wizard-progress-bar {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        width: auto;
        height: 3px;
    }

    .nyc-wizard-progress-bar span {
        width: 0;
        height: 100%;
    }

    .nyc-wizard-progress-bar span {
        height: 100% !important;
    }

    .nyc-wizard-step {
        flex-direction: column;
        align-items: flex-start;
        border: 1px solid var(--nyc-line);
        border-radius: 8px;
        padding: 9px 8px;
        background: rgba(255,255,255,.92);
    }

    .nyc-wizard-step span {
        max-width: none;
    }

    .nyc-photo-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .nyc-online-check {
        margin: 14px auto;
        padding: 14px;
    }

    .nyc-wizard-content {
        padding: 14px;
    }

    .nyc-grid-2,
    .nyc-wizard-progress {
        grid-template-columns: 1fr 1fr;
    }

    .nyc-wizard-nav {
        flex-direction: column;
    }

    .nyc-nav-btn,
    .nyc-submit {
        width: 100%;
    }
}

/* Wizard spacing + strict hidden controls */
.nyc-wizard-panel > div {
    margin-bottom: 18px;
}

.nyc-wizard-panel .nyc-grid {
    gap: 18px;
}

.nyc-wizard-panel h2 {
    margin-bottom: 16px;
}

.nyc-submit[hidden],
.nyc-nav-next[hidden],
.nyc-nav-back[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .nyc-wizard-panel > div {
        margin-bottom: 16px;
    }

    .nyc-wizard-panel .nyc-grid {
        gap: 14px;
    }
}

/* Drag-and-drop upload */
.nyc-dropzone {
    position: relative;
    border: 1.5px dashed #c1c8bd;
    border-radius: 9px;
    background: #fcfcfb;
    padding: 12px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.nyc-dropzone:hover {
    border-color: rgba(55, 84, 68, 0.55);
    background: #ffffff;
}

.nyc-dropzone.is-dragover {
    border-color: var(--nyc-green);
    background: #f3f8f5;
    box-shadow: 0 0 0 3px rgba(55, 84, 68, 0.12);
}

.nyc-dropzone-hint {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334035;
    margin-bottom: 5px;
}

.nyc-dropzone-file {
    display: block;
    font-size: 12px;
    color: var(--nyc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nyc-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.nyc-upload-help { margin: 4px 0 8px; }
