/* =========================================================
   Simple Contact Form — shared styles
   Dynamic values (button/background colours) are injected
   via inline <style> blocks in each Blade view.
   ========================================================= */

/* ---- Shared layout ---- */

.form-container {
    max-width: 830px;
    padding: 0 1rem;
}

.form-field-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    padding-bottom: 30px;
    position: relative;
}

.form-group label {
    font-size: 16px;
    line-height: 21px;
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #333;
}

.form-control {
    background: #f5f7f9;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    line-height: 38px;
    border-radius: 4px;
    border: none;
    outline: 0;
    color: #333;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border: none;
}

textarea.form-control {
    background: #f5f7f9;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
    height: auto;
}

.form-submit {
    margin-top: 5px;
    clear: both;
    overflow: hidden;
}

.btn {
    float: left;
    background: #192574;
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    display: block;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 232px;
    padding: 25px 75px;
    line-height: 0;
    cursor: pointer;
    font-weight: bold;
    outline: 0;
    transition: all 0.3s ease;
    overflow-wrap: normal;
}

.btn-primary {
    color: white;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 28px;
    padding: 3px 14px;
    border-radius: 4px;
    font-weight: 500;
    clear: both;
}

.form-message.success {
    background-color: #d4edda;
    border: 2px solid #00a0d2;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 2px solid #ffb900;
    color: #721c24;
}

.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ---- Contact form ---- */

#contact-form::after {
    content: "";
    display: table;
    clear: both;
}

/* ---- CCPA form ---- */

#ccpa-form-container .form-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 21px;
}

#ccpa-form-container .form-header {
    font-size: 16px;
    line-height: 21px;
    font-weight: normal;
    margin-bottom: 30px;
    text-align: left;
    text-transform: uppercase;
}

#ccpa-initial-section {
    padding: 36px 0 24px;
    overflow: hidden;
}

/* Custom checkbox styling shared by residence-confirm and verify */
#ccpa-form-container #ccpa-residence-confirm,
#ccpa-form-container #ccpa-verify {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
    width: 14px;
    height: 14px;
    margin: 3px 10px 0 0;
    display: block;
    float: left;
    position: relative;
    outline: none;
    border: none;
    appearance: none;
}

#ccpa-form-container #ccpa-residence-confirm:after,
#ccpa-form-container #ccpa-verify:after {
    content: "";
    vertical-align: middle;
    text-align: center;
    line-height: 13px;
    position: absolute;
    cursor: pointer;
    height: 14px;
    width: 14px;
    left: 0;
    top: 0;
    font-size: 10px;
    background: #D3D3D3;
}

#ccpa-form-container #ccpa-residence-confirm:checked:after,
#ccpa-form-container #ccpa-verify:checked:after {
    background: #D3D3D3;
    content: "\2714";
    color: #808080;
}

#ccpa-form-container .checkbox-label {
    font-size: 16px;
    line-height: 21px;
    cursor: pointer;
    overflow: hidden;
}

#ccpa-form-container select.form-control {
    background: #f5f7f9;
    border: 0;
    line-height: 38px;
    height: 38px;
    border-radius: 4px;
    outline: 0 none;
    padding: 0 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%3E%3Cpath%20fill='%23333'%20d='M6%209L1%204h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

#ccpa-form-container textarea.form-control {
    min-height: 120px;
}

/* Two-column layout for CCPA fields */
#ccpa-form-container .form-group {
    width: 48%;
    float: left;
    clear: none;
}

#ccpa-form-container .form-group:nth-child(even) {
    float: right;
}

#ccpa-form-container .form-group:has(textarea),
#ccpa-form-container .form-group:has(input[type="checkbox"]) {
    width: 100%;
    float: none;
    clear: both;
}

#ccpa-form::after {
    content: "";
    display: table;
    clear: both;
}

/* ---- Responsive ---- */

@media only screen and (max-width: 599px) {
    .form-container {
        padding: 0 0.5rem;
    }

    .btn {
        width: 100%;
        padding: 20px;
    }

    #ccpa-form-container .form-group,
    #ccpa-form-container .form-group:nth-child(even) {
        width: 100%;
        float: none;
    }
}
