/* Formulario Escuela Styles */

.form-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-title {
    color: #0088cc;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0088cc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

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

.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.form-control:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    font-size: 14px;
}

select.form-control {
    cursor: pointer;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='currentColor' 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 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select.form-control option {
    padding: 10px;
}

input[type="date"].form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type="number"].form-control {
    padding-right: 10px;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 5px;
}

/* Form Actions - Button base styles moved to buttons-common.css */
.form-actions .btn {
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0088cc 0%, #005a8a 100%);
    min-height: 160px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    font-size: 42px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 18px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 20px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .form-group.row {
        margin-left: 0;
        margin-right: 0;
    }

    .form-group.row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .form-page {
        padding: 40px 0;
    }

    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    .form-group label {
        font-size: 13px;
    }
}

/* Input Validation States */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}
