/* Contact Form 7 Custom Styles - Based on actual HTML structure */

/* Main form wrapper - flexbox grid */
.sec17 .container .content .wpcf7-form {
    margin-top: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Hide hidden fields container */
.sec17 .container .content .wpcf7-form .hidden-fields-container {
    display: none;
}

/* Each <p> wrapper (field container) - 50% width by default */
.sec17 .container .content .wpcf7-form>p {
    flex: 0 0 calc(50% - 10px);
    margin: 0;
}

/* Full width for email, textarea, checkbox, and submit */
.sec17 .container .content .wpcf7-form>p:has(label.email),
.sec17 .container .content .wpcf7-form>p:has(label.textarea),
.sec17 .container .content .wpcf7-form>p:has(label.checkbox),
.sec17 .container .content .wpcf7-form>p:has(input[type="submit"]) {
    flex: 0 0 100%;
}

/* Hide all BR tags */
.sec17 .container .content .wpcf7-form br {
    display: none;
}

/* Label styling */
.sec17 .container .content .wpcf7-form label {
    display: block;
    color: #faf6f0;
    font-size: 16px;
    font-style: normal;
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
}

/* Control wrapper */
.sec17 .container .content .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

/* Input fields */
.sec17 .container .content .wpcf7-form input.wpcf7-text,
.sec17 .container .content .wpcf7-form input.wpcf7-email,
.sec17 .container .content .wpcf7-form input.wpcf7-tel {
    margin-top: 6px;
    height: 40px;
    background: #F3ECE1;
    padding: 0 12px;
    color: #564b38;
    font-size: 16px;
    font-style: normal;
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

/* Textarea */
.sec17 .container .content .wpcf7-form textarea.wpcf7-textarea {
    resize: none;
    padding: 8px 12px;
    background: #F3ECE1;
    height: 160px;
    color: #564b38;
    font-size: 16px;
    font-style: normal;
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 6px;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder */
.sec17 .container .content .wpcf7-form input::placeholder,
.sec17 .container .content .wpcf7-form textarea::placeholder {
    color: rgba(86, 75, 56, 0.7);
}

/* Focus states */
.sec17 .container .content .wpcf7-form input.wpcf7-text:focus,
.sec17 .container .content .wpcf7-form input.wpcf7-email:focus,
.sec17 .container .content .wpcf7-form input.wpcf7-tel:focus,
.sec17 .container .content .wpcf7-form textarea.wpcf7-textarea:focus {
    outline: 1px solid #7a8463;
}

/* ===== CHECKBOX STYLING ===== */

/* Checkbox label */
.sec17 .container .content .wpcf7-form label.checkbox {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
}

/* Remove default checkbox wrapper styling */
.sec17 .container .content .wpcf7-form .wpcf7-checkbox {
    display: block;
}

/* List item */
.sec17 .container .content .wpcf7-form .wpcf7-list-item {
    margin: 0;
}

/* Nested label inside list item */
.sec17 .container .content .wpcf7-form .wpcf7-list-item>label {
    position: relative;
    padding-left: 0;
    margin: 0;
    display: block;
}

/* Hide real checkbox */
.sec17 .container .content .wpcf7-form .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 22px;
    height: 22px;
    left: -32px;
    top: 0;
    margin: 0;
}

/* Custom checkbox box (using nested label::before) */
.sec17 .container .content .wpcf7-form .wpcf7-list-item>label::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 1px;
    width: 22px;
    height: 22px;
    border: 1px solid #d1cbbf;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* Checked state background */
.sec17 .container .content .wpcf7-form .wpcf7-list-item>label:has(input[type="checkbox"]:checked)::before {
    background-color: #7a8463;
    border-color: #7a8463;
}

/* Custom checkmark */
.sec17 .container .content .wpcf7-form .wpcf7-list-item>label::after {
    content: "";
    position: absolute;
    display: none;
    left: -27px;
    top: 6px;
    transform: scaleX(-1) rotate(45deg);
    width: 11px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* Show checkmark when checked */
.sec17 .container .content .wpcf7-form .wpcf7-list-item>label:has(input[type="checkbox"]:checked)::after {
    display: block;
}

/* Checkbox label text */
.sec17 .container .content .wpcf7-form .wpcf7-list-item-label {
    margin: 0;
    padding: 0;
}

/* Hover effects */
.sec17 .container .content .wpcf7-form label.checkbox:hover .wpcf7-list-item-label {
    text-decoration: underline;
}

.sec17 .container .content .wpcf7-form .wpcf7-list-item>label:has(input[type="checkbox"]:hover)::before {
    border-color: #f3ece1;
}
.sec17 .container .content .wpcf7-form .wpcf7-list-item>label:has(input[type="checkbox"]:checked)::before {
    border-color: #74856E;
}
/* ===== SUBMIT BUTTON ===== */

.sec17 .container .content .wpcf7-form input.wpcf7-submit {
    color: #5b904a;
    font-size: 14px;
    font-style: normal;
    text-align: center;
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
    border: 1px solid #5b904a;
    border-radius: 100px;
    padding: 15px 43px;
    height: 40px;
    width: max-content;
    margin: 0;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FAF6F0;
    padding: 0 55px;
    height: 48px;
    border-color: #FAF6F0;
}

.sec17 .container .content .wpcf7-form input.wpcf7-submit:hover {
    opacity: 1;
    color: #74856E;
    background: #FAF6F0;
}

/* Spinner */
.sec17 .container .content .wpcf7-form .wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* ===== VALIDATION & MESSAGES ===== */

/* Individual field validation error */
.sec17 .container .content .wpcf7-form .wpcf7-not-valid-tip {
    color: #8B4513;
    font-size: 13px;
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    margin-top: 4px;
    display: block;
    font-style: italic;
}

/* Response output container */
.sec17 .container .content .wpcf7-form .wpcf7-response-output {
    margin: 30px 0 0;
    padding: 16px 20px;
    border-radius: 0;
    font-family: "Inter Tight", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    border: none;
    border-left: 3px solid;
    border-color: #faf6f0;
    color: #faf6f0 !important;
}

/* Validation errors (form-wide errors) */
.sec17 .container .content .wpcf7-form .wpcf7-validation-errors {
    border-left-color: #8B4513;
    background: rgba(139, 69, 19, 0.08);
    color: #564b38;
}

/* Success message */
.sec17 .container .content .wpcf7-form .wpcf7-mail-sent-ok {
    border-left-color: #74856E;
    background: rgba(116, 133, 110, 0.08);
    color: #564b38;
}

/* Failed to send */
.sec17 .container .content .wpcf7-form .wpcf7-mail-sent-ng {
    border-left-color: #8B4513;
    background: rgba(139, 69, 19, 0.08);
    color: #564b38;
}

/* Spam detected */
.sec17 .container .content .wpcf7-form .wpcf7-spam-blocked {
    border-left-color: #8B4513;
    background: rgba(139, 69, 19, 0.08);
    color: #564b38;
}

/* Invalid fields highlight */
.sec17 .container .content .wpcf7-form .wpcf7-not-valid {
    border-color: rgba(139, 69, 19, 0.3) !important;
}

/* Remove orange outline on invalid fields */
.sec17 .container .content .wpcf7-form .wpcf7-not-valid:focus {
    outline: 1px solid rgba(139, 69, 19, 0.5) !important;
}

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

@media (max-width: 768px) {
    .sec17 .container .content .wpcf7-form>p {
        flex: 0 0 100%;
    }
}

.wpcf7-list-item-label {
    text-decoration: none !important;
}

