/* Wrapper */
.wpcf7 .appraisal-form {
    max-width: 100%;
}

/* Inputs */
.wpcf7 .appraisal-form input,
.wpcf7 .appraisal-form textarea,
.wpcf7 .appraisal-form select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 8px 14px;
    color: #002049;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .3s ease;
}

/* Focus */
.wpcf7 .appraisal-form input:focus,
.wpcf7 .appraisal-form textarea:focus,
.wpcf7 .appraisal-form select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: none;
    color: 000000;
	background:#ffffff;

}

/* Placeholder */
.wpcf7 .appraisal-form input::placeholder,
.wpcf7 .appraisal-form textarea::placeholder {
    color: #001f49 !important;
    opacity: 1 !important;
	font-weight:600;
	
}
/* Placeholder Contact Form*/
.wpcf7 .appraisal-form.contact-form input::placeholder,
.wpcf7 .appraisal-form.contact-form textarea::placeholder {
    color: #8e8e8e !important;
    opacity: 1 !important;
	font-weight:400;
}

/* Labels hidden on property form */

/* .appraisal-form.contact-form.property-form label{
    display:none !important;
} */
/* Textarea */
.wpcf7 .appraisal-form textarea {
    min-height: 100px;
    height: 100px;
    resize: vertical;
}

/* CF7 wrappers */
.wpcf7 .appraisal-form .wpcf7-form-control-wrap {
    display: block;
}

/* Validation messages */
.wpcf7 .appraisal-form .wpcf7-not-valid-tip {
    margin-top: .5rem;
    color: #22d3ee;
    font-size: .875rem;
}

/* Submit button */
.wpcf7 .appraisal-form input[type="submit"] {
    width: 100%;
    border:none;
    background:var(--color-accent);
    color: #fff;
    padding: 10px 26px;
    cursor: pointer;
    transition: all .3s ease;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
	text-transform:uppercase;
	border-radius:4px;
}

.wpcf7 .appraisal-form input[type="submit"]:hover {
    background:#ffffff;
    color: var(--color-accent);
}

/* Response messages */
.wpcf7 .appraisal-form .wpcf7-response-output {
    margin-top: 2rem;
    color: #fff;
}

.wpcf7 .appraisal-form.contact-form label{
    color:#03adef;
	margin-bottom:4px;
	display:inline-block;
}
.wpcf7 .appraisal-form p{
    margin-bottom: 0;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: rgb(255, 185, 0);
	color:#ffffff;
}


/*==================================================
    OFFER FORM
==================================================*/

.offer-form {
    max-width: var(--container);
    margin: 70px auto;
    padding: 0 20px;
}


/*==================================================
    HEADER
==================================================*/

.offer-form .form-header {
    text-align: start;
    margin-bottom: 26px;
}

.offer-form .form-header h2 {
    margin: 0 0 15px;
    color: var(--navy);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
}

.offer-form .form-header p {
    max-width: 760px;
    margin: auto;
    color: var(--muted);
}

.offer-form label.fw-400 {
    font-weight: 400;
}


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

.offer-form .form-section {
    background: #fff;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 35px;
}

.offer-form .form-section h2 {
    margin: 0 0 30px;
    font-size: 30px;
    color: var(--navy);
    position: relative;
}

.offer-form .form-section h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--cyan);
    margin-top: 12px;
}

.offer-form .form-section h3 {
    margin: 0 0 25px;
    color: var(--navy);
    font-size: 22px;
}


/*==================================================
    NOTICE
==================================================*/

.offer-form .notice {
    background: #f3f3f3;
    padding: 28px;
    border-left: 2px solid var(--cyan);
    margin-top: 0;
}

.offer-form .notice p:last-child {
    margin-bottom: 0;
}


/*==================================================
    GRID
==================================================*/

.offer-form .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    row-gap: 0.75rem;
}

.offer-form .full {
    grid-column: 1 / -1;
}


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

.offer-form .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem !important;
    justify-content: space-between;
}

.offer-form .field textarea {
    margin-bottom: 1.5rem;
}

.offer-form .field label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--navy);
}

.offer-form .field input,
.offer-form .field textarea,
.offer-form .field select {
    width: 100%;
    border: 1px solid #d8dde6;
    background: #fff;
    padding: 6px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.offer-form .field textarea {
    resize: vertical;
    min-height: 170px;
}

.offer-form .field input:focus,
.offer-form .field textarea:focus,
.offer-form .field select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(3, 173, 239, 0.15);
}

.offer-form .field input::placeholder,
.offer-form .field textarea::placeholder {
    color: #999;
}


/*==================================================
    PURCHASER
==================================================*/

.offer-form .purchaser {
    background: #f3f3f3;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}


/*==================================================
    CHECKBOXES
==================================================*/

.offer-form .checkbox-grid .wpcf7-checkbox{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-form .checkbox-grid label.fw-400 {
    font-weight: 400;
}

.offer-form .checkbox-grid label,
.offer-form .checkbox-inline label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.offer-form .checkbox-grid input,
.offer-form .checkbox-inline input {
    width: auto;
    accent-color: var(--cyan);
    margin-top: 4px;
}

.offer-form #otherConditionInput {
    display: none;
    margin-top: 18px;
}


/*==================================================
    AGREEMENT
==================================================*/

.offer-form .agreement-list {
    padding-left: 22px;
    margin: 0 0 30px;
}

.offer-form .agreement-list li {
    margin-bottom: 14px;
}


/*==================================================
    SIGNATURES
==================================================*/

.offer-form .signature-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.offer-form .signature-card {
    background: #f3f3f3;
    padding: 25px;
    border-radius: 8px;
}

.offer-form .signature-pad {
    width: 100%;
    height: 220px;
    background: #fff;
    border: 2px dashed #bcc8d6;
    border-radius: 6px;
    display: block;
    margin-bottom: 18px;
    touch-action: none;
}

.offer-form .clear-signature {
    background: none;
    border: none;
    color: var(--cyan);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 0;
}

.offer-form .clear-signature:hover {
    text-decoration: underline;
}

.offer-form .signature-pad {
    cursor: crosshair; /* optional: add to your existing rule */
}

/* Hide the base64 text field but keep CF7's validation message visible */
.offer-form .signature-data-field-wrapper {
    position: relative;
}

.offer-form .signature-data-field {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

/* Style the "required" error when someone forgets to sign */
.offer-form .signature-data-field-wrapper .wpcf7-not-valid-tip {
    margin: -10px 0 14px;
    font-size: 13px;
}


/*==================================================
    PDF
==================================================*/

.offer-form .pdf-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    margin: 20px 0;
}


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

.offer-form .submit-section {
    text-align: center;
    border: none;
    padding-top: 10px;
}

.offer-form .btn-submit {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 16px 42px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.offer-form .btn-submit:hover {
    background: var(--cyan);
}

.offer-form .btn-submit:active {
    transform: translateY(1px);
}


/*==================================================
    REQUIRED
==================================================*/

.offer-form label span {
    color: var(--danger);
}


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

@media (max-width: 900px) {

    .offer-form .signature-wrapper,
    .offer-form .grid-2 {
        grid-template-columns: 1fr;
    }

    .offer-form .form-header h1 {
        font-size: 34px;
    }

    .offer-form .form-section {
        padding: 28px;
    }

}

@media (max-width: 640px) {

    .offer-form {
        margin: 40px auto;
    }

    .offer-form .form-header {
        margin-bottom: 40px;
    }

    .offer-form .form-header h1 {
        font-size: 28px;
    }

    .offer-form .form-section {
        padding: 22px;
    }

    .offer-form .form-section h2 {
        font-size: 24px;
    }

    .offer-form .signature-pad {
        height: 180px;
    }

}