/* ===== 1. Global Form Wrapper ===== */
.wpcf7, .wpcf7-form {
    font-family: 'Segoe UI', Roboto, sans-serif;
    max-width: 1800px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
}

/* ===== 2. Layout & Rows ===== */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-row-textarea {
    display: block;
    margin-bottom: 10px;
}

.form-col {
    flex: 1;
    min-width: 220px;
}

/* ===== 3. Labels & Headings ===== */
label, 
.form-row > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}

h2, h4, .checkbox-title {
    color: #df2b20;
    font-weight: 700;
}

.checkbox-title {
    font-size: 16px;
    margin-bottom: 12px;
    display: block;
    background-color: #f0f8ff; 
    padding: 4px 8px;   
}

/* ===== 4. Inputs, Selects & Textarea ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    border-radius: 10px; /* Unified to 10px */
    border: 1px solid #ccc;
    font-family: inherit;
    transition: all 0.3s ease;
}

textarea {
    min-height: 100px; /* Increased for better UX */
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #df2b20;
    box-shadow: 0 0 8px rgba(223, 43, 32, 0.3);
}

input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* ===== 5. File Upload ===== */
.fileupload {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.wpcf7-file {
    padding: 12px;
    border: 2px dashed #c8c8c8;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.wpcf7-file:hover { border-color: #999; background: #f1f1f1; }
.wpcf7-file:focus { border-color: #df2b20; outline: none; }

/* ===== 6. Buttons ===== */
input[type="submit"],
.wpcf7-submit,
button {
    background: #df2b20;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

input[type="submit"]:hover {
    filter: brightness(1.1);
}

/* ===== 7. Multi-step & Errors ===== */
.uacf7_step_start {
    font-size: 20px;
    font-weight: 700;
    color: #df2b20;
    margin: 20px 0 15px 0 !important;
    display: block;
}

.uacf7_step_end {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.wpcf7 form.invalid .cf7sg-response-output {
    color: #df2b20;
    font-weight: bold;
}

/* ===== 8. Responsive ===== */
@media (max-width: 600px) {
    .form-col {
        min-width: 100%;
    }
}