﻿/* ================================
   GLOBAL LAYOUT
   ================================ */

body {
    margin: 0;
    padding: 40px 20px;
    font-family: "Montserrat", sans-serif;
    background: #f5f5f5;
    color: #222;
    display: flex;
    justify-content: center;
}

.form-wrapper {
    font-family: "Montserrat", sans-serif !important;
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

p {
    color: #85500F;
    font-style: italic;
}

/* ================================
   TITLES
   ================================ */

h1 {
    font-family: "Montserrat", sans-serif;
    margin: 0 0 3px;
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
    color: #5C462A;
}

h2 {
    font-family: "Montserrat", sans-serif;
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
    color: #f59b00;
}

h1, h2 {
    text-rendering: optimizeLegibility;
}

/* ================================
   PROGRESS DOTS
   ================================ */

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

    .progress-dots .dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid #555;
        background: transparent;
        transition: background 0.25s ease, transform 0.25s ease;
    }

        .progress-dots .dot.active {
            background: #f59b00;
            transform: scale(1.2);
        }

/* ================================
   FORM STEPS
   ================================ */

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

/* ================================
   LABELS
   ================================ */

label {
    display: block;
    margin-bottom: 0;
    margin-top: 10px;
    font-weight: 700;
    color: #9A744A; /* lighter than h1 color */
}

    .options label,
    .option-block,
    .options-grid label,
    label.option-block {
        color: #2c1f0f !important;  /* override stubborn utility class */
    }

.required {
    color: #f59b00;
}

.scale-options label {
    font-weight: 400;
}

/* Validation highlight */
label.error-label,
label.error-label * {
    color: #ff0000 !important;
    font-weight: 700 !important;
}

subtext {
    font-size: 13px;
    color: #6E420C;
    line-height: 1.25;
    padding: 0;
}

/* ================================
   INPUTS
   ================================ */

/* Base input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    textarea:focus {
        border: 1px solid #3c8c4f;
        outline: none;
        box-shadow: none;
    }

    .options {margin-bottom: 8px;}

.options input[type="text"] {
    margin-bottom: 0; /* removes the big gap */
    padding: 0.35rem; /* optional: keep it readable */
    line-height: 1.2;
}

.input-other {
    padding: 1px;
    margin-left: 6px;
    height: 24px;
    font-size: 12px;
}

/* Explicit field widths */
.input-email {
    padding: 3px;
    max-width: 350px;
}

.input-company {
    max-width: 400px;
}

.input-venue {
    max-width: 450px;
}

.input-address {
    max-width: 400px;
}

.input-tel {
    max-width: 150px;
}

.input-eventname {
    padding: 3px;
    max-width: 370px;
}

.input-budget {
    max-width: 250px;
}

.input-name {
    max-width: 250px;
}

.input-other {
    max-width: 440px;
}


/* ================================
   RADIO & CHECKBOX STYLING
   ================================ */

.options label {
    color: #2c1f0f;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #f59b00;
}

/* Responsive grid, max 3 columns */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px;
    margin-top: 0;
    max-width: 670px; /* prevents 4th column */
}

.option-block {
    display: block !important; /* force label to behave like a block */
    width: 100%; /* prevents inline wrapping */
    margin-bottom: 14px;
}

    .option-block > div {
        display: flex;
        align-items: flex-start;
    }

    .option-block input[type="radio"] {
        margin-right: 8px;
        margin-top: 2px;
    }

    .option-block .main-label {
        display: inline-block; /* keeps label text on its own line */
        font-weight: 500;
    }

    .option-block .subtext {
        display: block !important; /* forces a new line */
        clear: both !important; /* ensures it drops below the label */
        float: none !important; /* prevents inline float behavior */
        margin-left: 26px; /* aligns under main label */
        margin-top: 2px; /* tight spacing */
        font-size: 13px;
        color: #6E420C;
        line-height: 1.4;
        padding: 0;
    }

/* ================================
   SCALE FIELDS
   ================================ */

.scale-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.scale-options {
    display: flex;
    gap: 6px;
}

.scale-field.invalid .scale-label {
    color: #ff0000 !important;
    font-weight: 700;
}

/* ================================
   CONDITIONAL SECTIONS
   ================================ */

.hidden {
    display: none;
}

/* ================================
   BUTTONS
   ================================ */

.next-btn,
.back-btn,
.submit-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.next-btn,
.submit-btn {
    background: #f59b00;
    color: #fff;
}

    .next-btn:hover,
    .submit-btn:hover {
        background: #d98700;
    }

.back-btn {
    background: #ddd;
    color: #333;
}

    .back-btn:hover {
        background: #ccc;
    }

/* ================================
   FOOTER
   ================================ */

.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

    .footer a {
        color: #f59b00;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 600px) {
    .form-wrapper {
        padding: 20px;
    }
}
