/* Container & Card Styling */
.providence-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    max-width: 100%;
    margin-bottom: 30px;
    font-family: 'Open Sans', Arial, sans-serif; /* Ensure font match */
}

/* Section Headers */
.form-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #2ea3f2; /* Divi Blue */
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2ea3f2;
    display: inline-block;
    width: 100%;
}

/* Fields */
.form-field {
    margin-bottom: 20px;
    width: 100%; /* Ensure container fills space */
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required-mark {
    color: #e02b20;
    font-weight: bold;
}

/* --- UNIFIED INPUT STYLING --- */
/* This ensures Text, Date, Email, Phone, and Selects all look identical */
.providence-form-container input[type="text"],
.providence-form-container input[type="email"],
.providence-form-container input[type="tel"],
.providence-form-container input[type="date"],
.providence-form-container select,
.providence-form-container textarea {
    width: 100% !important; /* Force full width */
    display: block;
    min-height: 48px; /* Fixed height for consistency */
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    box-sizing: border-box; /* Prevents padding from breaking layout */
    transition: all 0.3s ease;
    
    /* Reset browser defaults */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus State */
.providence-form-container input:focus,
.providence-form-container textarea:focus,
.providence-form-container select:focus {
    border-color: #2ea3f2;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(46, 163, 242, 0.2);
}

/* --- CUSTOM SELECT ARROW --- */
/* Since we removed the default arrow with 'appearance: none', we add a custom one */
.providence-form-container select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 30px; /* Make space for the arrow */
    cursor: pointer;
}

/* Specific fix for Date Picker icon placement */
.providence-form-container input[type="date"] {
    position: relative;
}

/* Checkboxes & Radios */
.checkbox-group label,
.radio-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group input,
.radio-group input {
    margin-right: 10px;
    display: inline-block;
    width: auto !important; /* Don't force 100% width on checkboxes */
    min-height: auto;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
    text-align: right;
}

.submit-btn {
    background-color: #2ea3f2; /* Divi Blue */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #258ecf;
}

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

/* Messages */
.form-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 14px;
}
.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}