/* ================= GENERIC PAGE STYLES ================= */

/* Section Wrapper */
.general-page-section {
    padding: 80px 0;
    background-color: #fff;
    min-height: 60vh;
}

/* Page Content Wrapper */
.page-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #18181B;
    margin-bottom: 10px;
}

.page-body-content {
    width: 100%;
    color: #52525B;
    font-size: 18px;
    line-height: 1.7;
}

.page-body-content p {
    margin-bottom: 20px;
}

/* ================= REGISTRATION PAGE STYLES ================= */
.registration-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #18181B;
    margin-bottom: 12px;
}

.form-header p {
    font-size: 18px;
    color: #71717A;
    margin-bottom: 40px;
}

.form-container-box {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #E4E4E7;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    text-align: left;
}

/* ================= FORM STYLING (Universal - Light Mode) ================= */
.page-body-content form,
.wpcf7-form,
.gform_wrapper,
.wpforms-container,
.form-container-box form {
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

/* WPForms Container reset inside our custom box */
.form-container-box .wpforms-container {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Labels */
.page-body-content label,
.gfield_label,
.wpforms-field-label,
.form-container-box label {
    font-size: 14px;
    font-weight: 600;
    color: #18181B;
    margin-bottom: 8px;
    display: block;
}

/* Inputs */
.page-body-content input[type="text"],
.page-body-content input[type="email"],
.page-body-content input[type="tel"],
.page-body-content input[type="url"],
.page-body-content input[type="password"],
.page-body-content textarea,
.page-body-content select,
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea,
.ginput_container input:not([type="checkbox"]):not([type="radio"]),
.ginput_container textarea,
.wpforms-field input:not([type="checkbox"]):not([type="radio"]),
.wpforms-field textarea,
.form-container-box input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #D4D4D8 !important;
    color: #18181B !important;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Input Focus */
input:focus,
textarea:focus,
select:focus {
    border-color: #1E3A6A !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 106, 0.15) !important;
}

/* Submit Button */
.page-body-content input[type="submit"],
.gform_button,
.wpforms-submit,
.wpforms-submit-container button,
.form-container-box button[type="submit"] {
    background: linear-gradient(135deg, #1E3A6A, #3B72D0) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-body-content input[type="submit"]:hover,
.gform_button:hover,
.wpforms-submit:hover,
.wpforms-submit-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 114, 208, 0.3);
}

/* Placeholder color adjustments */
::placeholder {
    color: #A1A1AA;
}

/* Responsive */
@media(max-width: 768px) {
    .general-page-section {
        padding: 40px 20px;
    }

    .page-title,
    .form-header h1 {
        font-size: 32px;
    }

    .form-container-box {
        padding: 24px;
    }
}

/* ================= RESET FORM LAYOUT (Aggressive Fix) ================= */
/* Force all direct children of the form to stack vertically */
.page-body-content form p,
.wpcf7-form p,
.wpforms-container form p {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px;
    clear: both;
}

/* Force wrappers to be full width block */
.wpcf7-form-control-wrap,
.ginput_container,
.wpforms-field-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure labels behave like block elements */
.wpcf7-form label {
    width: 100%;
    display: block;
}

/* ================= WPFORMS SPECIFIC OVERRIDES ================= */
.wpforms-container,
.wpforms-field-container,
.wpforms-field {
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
}

.wpforms-form .wpforms-field-medium,
.wpforms-form .wpforms-field-large,
.wpforms-form .wpforms-field-small {
    max-width: 100% !important;
    width: 100% !important;
}

/* Force inputs and textareas to full width */
.wpforms-form input:not([type=submit]):not([type=image]):not([type=hidden]):not([type=checkbox]):not([type=radio]),
.wpforms-form textarea,
.wpforms-form select {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block;
}

.wpforms-one-half {
    width: 100% !important;
    margin-left: 0 !important;
}

.wpforms-field-label {
    display: block !important;
    width: 100%;
    color: #18181B !important;
}