/* ==========================================================
   AVSTUDIO
   CONTACT PAGE ONLY

   The main site supplies shared variables, theme styles,
   the shared header, footer styling and the page-transition
   animation. This file owns the contact page layout and form.
========================================================== */



/* ==========================================================
   PAGE
========================================================== */

.contact-page {
    width: 100%;

    background: var(--background);
    color: var(--text);
}

.contact-page-width {
    width: min(1400px, 90%);

    margin: 0 auto;

    padding: 180px 0 120px;

    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 90px;
    align-items: start;
}



/* ==========================================================
   INTRO (LEFT)
========================================================== */

.contact-intro {
    position: sticky;
    top: 130px;
}

.contact-intro h1 {
    margin: 0;

    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.contact-description {
    max-width: 470px;

    margin-top: 26px;

    color: var(--text-secondary);

    font-size: 1.05rem;
    line-height: 1.75;
}


/* WHAT HAPPENS NEXT */

.contact-next {
    max-width: 470px;

    margin-top: 55px;
}

.contact-next-label {
    display: block;

    margin-bottom: 14px;

    color: var(--gold);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-next-steps {
    list-style: none;

    border-top: 1px solid var(--border);
}

.contact-next-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;

    padding: 17px 0;

    border-bottom: 1px solid var(--border);
}

.contact-next-steps span {
    padding-top: 3px;

    color: var(--gold);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.contact-next-steps p {
    color: var(--text-secondary);

    line-height: 1.6;
}



/* ==========================================================
   FORM PANEL (RIGHT)
========================================================== */

.contact-form-panel {
    padding: 48px;

    border: 1px solid var(--border);

    background: var(--background-secondary);
}



/* ==========================================================
   QUOTE FORM
========================================================== */

.quote-form {

    display:
        grid;

    gap:
        28px;
}



/* ==========================================================
   FORM ROW
========================================================== */

.quote-form-row {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        24px;
}



/* ==========================================================
   FORM FIELD
========================================================== */

.quote-form-field {

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;
}


.quote-form-field label {

    color:
        var(--text);

    font-size:
        0.84rem;

    font-weight:
        750;

    letter-spacing:
        0.04em;
}


.quote-form-field input,
.quote-form-field textarea {

    width:
        100%;

    padding:
        17px
        18px;

    border:
        1px solid
        var(--border);

    border-radius:
        0;

    outline:
        none;

    background:
        var(--surface);

    color:
        var(--text);

    font:
        inherit;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.quote-form-field input:focus,
.quote-form-field textarea:focus {

    border-color:
        var(--gold);

    box-shadow:
        0
        0
        0
        1px
        var(--gold);
}


.quote-form-field input::placeholder,
.quote-form-field textarea::placeholder {

    color:
        var(--text-secondary);

    opacity:
        0.65;
}


.quote-form-field textarea {

    min-height:
        190px;

    resize:
        vertical;
}



/* ==========================================================
   DATE INPUT DARK MODE
========================================================== */

html[data-theme="dark"]
.quote-form-field input[type="date"] {

    color-scheme:
        dark;
}



/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.quote-submit {

    width:
        fit-content;

    min-width:
        245px;

    padding:
        17px
        23px;

    border:
        none;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        35px;

    background:
        var(--gold);

    color:
        #ffffff;

    font:
        inherit;

    font-weight:
        750;

    cursor:
        pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.quote-submit:hover {

    background:
        var(--gold-dark);

    transform:
        translateY(-2px);
}


.quote-submit-arrow {

    font-size:
        1.25rem;

    transition:
        transform 0.25s ease;
}


.quote-submit:hover
.quote-submit-arrow {

    transform:
        translateX(4px);
}



/* ==========================================================
   FORM MESSAGE
========================================================== */

.quote-form-message {

    display:
        none;

    margin:
        0;

    color:
        var(--text-secondary);

    line-height:
        1.6;
}


.quote-form-message.visible {

    display:
        block;
}




/* ==========================================================
   REQUIRED FIELDS + FORM FOOTER
========================================================== */

.quote-form-field label {
    display: flex;
    gap: 5px;
}

.quote-required {
    color: var(--gold);
}

.quote-form-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 28px;
}

.quote-required-note {
    color: var(--text-secondary);

    font-size: 0.85rem;
}

.quote-form-message.visible {
    padding: 16px 18px;

    border-left: 3px solid var(--gold);

    background: var(--surface);
    color: var(--text);
}



/* Link to the privacy policy under the button */

.quote-privacy-note {
    width: 100%;

    color: var(--text-secondary);

    font-size: 0.85rem;
}

.quote-privacy-note a {
    color: var(--gold);
}



/* ==========================================================
   SERVICE PICKER
   Optional; any number can be ticked. "Teljes csomag" ticks
   all four (handled in main.js).
========================================================== */

.quote-services {
    min-width: 0;

    margin: 0;
    padding: 0;

    border: none;
}

.quote-services legend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;

    margin-bottom: 14px;
    padding: 0;

    color: var(--text);

    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.quote-optional {
    color: var(--text-secondary);

    font-weight: 500;
    letter-spacing: 0;
}

.quote-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quote-service {
    position: relative;

    display: block;

    cursor: pointer;
}

.quote-service input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.quote-service-box {
    height: 100%;
    min-height: 64px;

    padding: 14px 16px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;

    border: 1px solid var(--border);

    background: var(--surface);

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.quote-service:hover .quote-service-box {
    transform: translateY(-2px);

    border-color: var(--gold);

    box-shadow: var(--shadow);
}

.quote-service input:focus-visible + .quote-service-box {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.quote-service-number {
    color: var(--gold);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.quote-service-name {
    color: var(--text);

    font-weight: 650;
    line-height: 1.3;
}

.quote-service-check {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    color: transparent;

    font-size: 0.8rem;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.quote-service input:checked + .quote-service-box {
    border-color: var(--gold);

    background: var(--surface-hover);
}

.quote-service input:checked + .quote-service-box .quote-service-check {
    background: var(--gold);
    border-color: var(--gold);

    color: #ffffff;

    transform: scale(1.06);
}


/* COMPLETE PACKAGE: full width, gold when ticked */

.quote-service-all {
    grid-column: 1 / -1;
}

.quote-service-all input:checked + .quote-service-box {
    background: var(--gold);
    border-color: var(--gold);
}

.quote-service-all input:checked + .quote-service-box .quote-service-number,
.quote-service-all input:checked + .quote-service-box .quote-service-name {
    color: #ffffff;
}

.quote-service-all input:checked + .quote-service-box .quote-service-check {
    background: #ffffff;
    border-color: #ffffff;

    color: var(--gold);
}



/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 950px) {

    .contact-page-width {
        grid-template-columns: 1fr;
        gap: 55px;

        padding-top: 160px;
    }

    .contact-intro {
        position: static;
    }

    .contact-next {
        margin-top: 40px;
    }

}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

    .contact-page-width {
        width: 92%;

        padding: 130px 0 85px;
    }

    .contact-intro h1 {
        font-size: clamp(2.4rem, 12vw, 3.8rem);
    }

    .contact-form-panel {
        padding: 26px 20px;
    }

    .quote-form-row {
        grid-template-columns: 1fr;
    }

    .quote-service-grid {
        grid-template-columns: 1fr;
    }

    .quote-submit {
        width: 100%;
    }

}
