/* Modern Contact Form Styling */

/* Container styling */
.mod_sef {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #a8d5d5 0%, #b8e6e6 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove table styling and create modern layout */
.mod_sef_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.mod_sef_tr {
    display: block;
    margin-bottom: 20px;
    border: none;
}

.mod_sef_th,
.mod_sef_td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
}

/* Label styling */
.mod_sef_th label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #4a5c5a;
    text-align: left !important;
}

/* Required asterisk styling - SCOPED TO BOTH FORMS */
.mod_sef .star,
.mod_tuition .star {
    color: #e74c3c;
    font-weight: bold;
}

/* Input field styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[type="text"],
.mod_sef input[type="email"],
.mod_sef select,
.mod_sef textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0f0f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

/* Input focus states - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[type="text"]:focus,
.mod_sef input[type="email"]:focus,
.mod_sef select:focus,
.mod_sef textarea:focus {
    outline: none;
    border-color: #6db4a4;
    box-shadow: 0 0 0 3px rgba(109, 180, 164, 0.1);
    background-color: #fafffe;
}

/* Placeholder styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef input::placeholder,
.mod_sef textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Select dropdown styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

/* Make message field a textarea-like appearance - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[name*="field4"] {
    min-height: 120px;
    vertical-align: top;
    resize: vertical;
}

/* Button container */
.mod_sef_tr:last-child .mod_sef_td {
    text-align: center;
    padding-top: 10px;
}

/* Submit button styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[type="submit"] {
    background: linear-gradient(135deg, #6db4a4 0%, #5ca394 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(109, 180, 164, 0.3);
    margin-right: 15px;
}

.mod_sef input[type="submit"]:hover {
    background: linear-gradient(135deg, #5ca394 0%, #4d9284 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 180, 164, 0.4);
}

.mod_sef input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(109, 180, 164, 0.3);
}

/* Reset button styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[type="reset"] {
    background: transparent;
    color: #6db4a4;
    border: 2px solid #6db4a4;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mod_sef input[type="reset"]:hover {
    background: #6db4a4;
    color: white;
    transform: translateY(-2px);
}

/* Hide empty spacing cells - SCOPED TO CONTACT FORM ONLY */
.mod_sef td[width="5"] {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .mod_sef {
        margin: 0 15px;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .mod_sef input[type="submit"],
    .mod_sef input[type="reset"] {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 16px;
    }
    
    .mod_sef_th label {
        font-size: 15px;
    }
    
    .mod_sef input[type="text"],
    .mod_sef input[type="email"],
    .mod_sef select {
        font-size: 15px;
        padding: 12px 15px;
    }
}

/* Add some animation for form appearance */
.mod_sef {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input validation styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.mod_sef input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #27ae60;
    background-color: #f2fdf6;
}

/* Custom styling for specific fields - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[name*="field1"] {
    /* Name field - no special styling needed */
}

.mod_sef input[name*="field2"] {
    /* Email field - maybe add an email icon */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3e%3cpolyline points='22,6 12,13 2,6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
}

.mod_sef input[name*="field3"] {
    /* Subject field - no special styling needed */
}

/* Hidden field styling - SCOPED TO CONTACT FORM ONLY */
.mod_sef input[type="hidden"] {
    display: none;
}

/* Improve form accessibility */
.mod_sef label {
    cursor: pointer;
}

/* Focus indicators for better accessibility - SCOPED TO CONTACT FORM ONLY */
.mod_sef input:focus,
.mod_sef select:focus {
    position: relative;
    z-index: 1;
}

/* ============================================
   TUITION FORM STYLES (mod_tuition_)
   ============================================ */

/* Container styling for tuition form */
.mod_tuition {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #a8d5d5 0%, #b8e6e6 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInUp 0.6s ease-out;
}

/* Remove table styling and create modern layout for tuition form */
.mod_tuition_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.mod_tuition_tr {
    display: block;
    margin-bottom: 20px;
    border: none;
}

.mod_tuition_th,
.mod_tuition_td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
}

/* Label styling for tuition form */
.mod_tuition_th label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #4a5c5a;
    text-align: left !important;
}

/* Default td styling - no background */
.mod_tuition_td {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

/* Radio button group styling - ONLY for cells containing radio buttons */
.mod_tuition_td input[type="radio"] {
    /* This will be styled by the parent container */
}

.mod_tuition_td input[type="radio"]:first-child {
    /* Style the parent container when it contains radio buttons */
}

/* Create a styled container around radio button groups */
.mod_tuition_td input[type="radio"]:first-child {
    margin-top: 0;
}

.mod_tuition_td input[type="radio"]:first-child ~ * {
    /* All siblings after first radio button */
}

/* Better approach - target the specific td that contains radio buttons */
.mod_tuition_tr:nth-child(2) .mod_tuition_td:last-child,
.mod_tuition_tr:nth-child(3) .mod_tuition_td:last-child,
.mod_tuition_tr:nth-child(4) .mod_tuition_td:last-child {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(109, 180, 164, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mod_tuition_tr:nth-child(2) .mod_tuition_td:last-child:hover,
.mod_tuition_tr:nth-child(3) .mod_tuition_td:last-child:hover,
.mod_tuition_tr:nth-child(4) .mod_tuition_td:last-child:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(109, 180, 164, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hide empty td elements and spacing cells */
.mod_tuition_td:empty,
.mod_tuition td[width="5"] {
    display: none;
}

/* Radio button and label pairs - clean layout */
.mod_tuition_td input[type="radio"] + label {
    display: inline-block;
    margin-left: 8px;
    margin-right: 20px;
    vertical-align: middle;
}

/* Each radio button group gets proper spacing */
.mod_tuition_td input[type="radio"] {
    margin-bottom: 12px;
}

.mod_tuition_td input[type="radio"]:last-of-type {
    margin-bottom: 0;
}

/* Native radio button styling - clean and simple */
.mod_tuition input[type="radio"] {
    margin: 0 8px 12px 0;
    vertical-align: middle;
    cursor: pointer;
}

.mod_tuition input[type="radio"]:focus {
    outline: 2px solid #6db4a4;
    outline-offset: 2px;
}

/* Radio button labels - clean styling */
.mod_tuition label {
    font-size: 15px;
    font-weight: 500;
    color: #4a5c5a;
    cursor: pointer;
    margin: 0 20px 12px 0;
    padding: 0;
    line-height: 1.4;
    user-select: none;
    vertical-align: middle;
    display: inline-block;
}

.mod_tuition label:hover {
    color: #5ca394;
}

/* Force each radio button to be on its own line */
.mod_tuition_td input[type="radio"] {
    display: block;
    margin: 0 0 8px 0;
}

.mod_tuition_td input[type="radio"] + label {
    display: block;
    margin: -20px 0 12px 25px;
    line-height: 1.4;
}

/* Text input styling - also needs container styling */
.mod_tuition_tr:nth-child(1) .mod_tuition_td:last-child {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(109, 180, 164, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mod_tuition_tr:nth-child(1) .mod_tuition_td:last-child:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(109, 180, 164, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Text inputs in tuition form */
.mod_tuition input[type="text"],
.mod_tuition input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0f0f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.mod_tuition input[type="text"]:focus,
.mod_tuition input[type="email"]:focus {
    outline: none;
    border-color: #6db4a4;
    box-shadow: 0 0 0 3px rgba(109, 180, 164, 0.1);
    background-color: #fafffe;
}

/* Email field icon for tuition form */
.mod_tuition input[name*="field2"] {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3e%3cpolyline points='22,6 12,13 2,6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
}

/* Button styling for tuition form */
.mod_tuition input[type="submit"] {
    background: linear-gradient(135deg, #6db4a4 0%, #5ca394 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(109, 180, 164, 0.3);
    margin-right: 15px;
}

.mod_tuition input[type="submit"]:hover {
    background: linear-gradient(135deg, #5ca394 0%, #4d9284 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 180, 164, 0.4);
}

.mod_tuition input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(109, 180, 164, 0.3);
}

.mod_tuition input[type="reset"] {
    background: transparent;
    color: #6db4a4;
    border: 2px solid #6db4a4;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mod_tuition input[type="reset"]:hover {
    background: #6db4a4;
    color: white;
    transform: translateY(-2px);
}

/* Button container for tuition form */
.mod_tuition .mod_tuition_tr:last-child .mod_tuition_td {
    text-align: center;
    padding-top: 10px;
}

/* Hide empty spacing cells in tuition form */
.mod_tuition td[width="5"] {
    display: none;
}

/* Hidden field styling for tuition form */
.mod_tuition input[type="hidden"] {
    display: none;
}

/* Hide the email input row (From field) - keep functional but invisible */
.mod_tuition input[name="mod_simpleemailform_field6_1"] {
    display: none;
}

.mod_tuition label[for="mod_simpleemailform_field6_1"] {
    display: none;
}

/* Hide the entire row containing the From field */
.mod_tuition_tr:has(input[name="mod_simpleemailform_field6_1"]) {
    display: none;
}

/* Hide the email input row (From field) - keep functional but invisible */
.mod_tuition input[name="mod_simpleemailform_field7_1"] {
    display: none;
}

.mod_tuition label[for="mod_simpleemailform_field7_1"] {
    display: none;
}

/* Hide the entire row containing the From field */
.mod_tuition_tr:has(input[name="mod_simpleemailform_field7_1"]) {
    display: none;
}

/* Input validation styling for tuition form */
.mod_tuition input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.mod_tuition input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #27ae60;
    background-color: #f2fdf6;
}

/* Improve form accessibility for tuition form */
.mod_tuition label {
    cursor: pointer;
}

/* Responsive design for tuition form */
@media (max-width: 768px) {
    .mod_tuition {
        margin: 0 15px;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .mod_tuition input[type="submit"],
    .mod_tuition input[type="reset"] {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 16px;
    }
    
    .mod_tuition_th label {
        font-size: 15px;
    }
    
    .mod_tuition input[type="text"],
    .mod_tuition input[type="email"] {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .mod_tuition_td table {
        padding: 12px;
    }
    
    .mod_tuition_td table label {
        font-size: 14px;
    }
}
