/* ============================================================
   Pinewood Quote Form - Base Styles
   ============================================================ */

:root {
    --pqf-accent: #395618;
    --pqf-accent-hover: #1e3e1a;
    --pqf-text: #201E1D;
    --pqf-text-light: #666;
    --pqf-bg: var(--c-sand-vivid);
    --pqf-card-bg: var(--c-sand-vivid);
    --pqf-card-border: #e0e0e0;
    --pqf-card-selected-bg: #eef5ed;
    --pqf-radius: 0;
    --pqf-error: #c0392b;
    --pqf-success: #27ae60;
    --pqf-max-width: 640px;
}


/* ---- WRAPPER ---- */

.pqf-wrap {
    width: var(--pqf-max-width);
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 590px;
    display: flex;
    flex-direction: column;
}


/* ---- PROGRESS BAR ---- */

.pqf-progress {
    width: 100%;
    height: 10px;
    align-self: center;
    background: var(--pqf-card-border);
    border-radius: var(--pqf-radius);
    margin-bottom: 2rem;
    overflow: hidden;
}

.pqf-progress-bar {
    height: 100%;
    width: 30%;
    background: var(--pqf-accent);
    transition: width 0.4s ease;
}


/* ---- STEPS ---- */

.pqf-step {
    display: none;
    width: 100%;
}

.pqf-step-active {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    animation: pqfFadeIn 0.3s ease;
}

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

.pqf-step-label {
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.pqf-heading {
    margin: 0 0 1.5rem 0;
}

.pqf-subtext {
    margin: -0.5rem 0 1.5rem 0;
}


/* ---- ANSWER AREA ---- */

.pqf-answer-area {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
    min-height: 0;
}


/* ---- CARDS: 2x2 GRID (Steps 1 & 2) ---- */

.pqf-cards-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.pqf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--pqf-card-bg);
    border: 2px solid var(--pqf-card-border);
    border-radius: var(--pqf-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: center;
}

.pqf-card:hover {
    border-color: var(--pqf-accent);
    background: var(--pqf-card-selected-bg);
}

.pqf-card-selected {
    border-color: var(--pqf-accent);
    background: var(--pqf-card-selected-bg);
}

.pqf-card-icon {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 0.75rem;
    color: var(--pqf-accent);
}

.pqf-card-icon svg {
    width: 100%;
    height: 100%;
}


/* ---- CARDS: LIST / ROW (Step 3: Budget) ---- */

.pqf-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.pqf-card-row {
    flex: 1;
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
}


/* ---- TEXTAREA (Step 4) ---- */

.pqf-textarea {
    width: 100%;
    flex: 1;
    min-height: 140px;
    padding: 0.9rem 1rem;
    border: 2px solid var(--pqf-card-border);
    border-radius: var(--pqf-radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--pqf-text);
    background: var(--pqf-bg);
    resize: none;
    overflow-y: auto;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.pqf-textarea:focus {
    outline: none;
    border-color: var(--pqf-accent);
}


/* ---- FORM FIELDS (Step 5) ---- */

.pqf-field {
    margin-bottom: 0.5rem;
}

.pqf-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.pqf-req {
    color: var(--pqf-error);
}

.pqf-field input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 2px solid var(--pqf-card-border);
    border-radius: var(--pqf-radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--pqf-text);
    background: var(--pqf-bg);
    box-sizing: border-box;
}

.pqf-field input:focus {
    outline: none;
    border-color: var(--pqf-accent);
}

.pqf-field-error input {
    border-color: var(--pqf-error);
}

.pqf-error-msg {
    display: block;
    color: var(--pqf-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}


/* ---- HONEYPOT ---- */

.pqf-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


/* ---- TURNSTILE ---- */

.pqf-turnstile {
    margin-bottom: 1rem;
}


/* ---- BUTTONS ---- */

.pqf-next,
.pqf-submit {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--pqf-accent);
    color: #fff;
    border: none;
    border-radius: var(--pqf-radius);
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 0.5rem;
}

.pqf-next:hover,
.pqf-submit:hover {
    background: var(--pqf-accent-hover);
}

.pqf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pqf-skip {
    display: block;
    width: 100%;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.25rem;
}

.pqf-skip:hover {
    color: var(--pqf-text);
}

.pqf-back {
    display: block;
    cursor: pointer;
    margin-top: 1.25rem;
    padding: 0;
    background: transparent;
    border: none;
}

.pqf-back:hover {
    color: var(--pqf-text);
}


/* ---- SUCCESS ---- */

.pqf-success .pqf-success-icon {
    width: 56px;
    height: 56px;
    color: var(--pqf-success);
    margin-bottom: 1rem;
}

.pqf-success .pqf-success-icon svg {
    width: 100%;
    height: 100%;
}


/* ---- MOBILE ---- */

@media (max-width: 500px) {
    .pqf-wrap {
        /*padding: 1.25rem 1rem;*/
        padding: 0 0;
        min-height: 550px;
    }

    .pqf-heading {
        /*font-size: 1.2rem;*/
    }

    .pqf-cards-2x2 {
        /*grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);*/
        gap: 0.6rem;
    }

    .pqf-answer-area {
        min-height: 0;
        overflow: visible;
    }
}