/* Base styles matching the index theme */
:root {
            --primary-color: #012031;
            --secondary-color: #00a7ff;
            --accent-color: #2ecc71;
            --text-color: #505050;
            --background-color: #e7e6e6;
            --white-color: #fff;
            --border-color: #bdbdbd;
            --line-color: #979797;
        }
body {
    font-family: "Raleway", sans-serif;
    font-size: 1.2em;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Form container styles */
.section {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(1, 32, 49, 0.3); /* Darker shadow */
    padding: 30px;
    border: 1px solid var(--border-color); /* Added border */
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--line-color);
    padding-bottom: 20px;
}

header h3 {
    color: var(--primary-color);
    font-size: 2.6rem;
    margin-bottom: 10px;
}

header h4 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Estilos para el contenedor del encabezado */
.header-content {
    background-color: #a3c6f1; /* Fondo similar al color en la imagen */
    border-radius: 15px; /* Bordes redondeados */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar el contenido horizontalmente */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para el logo */
.header-content .logo {
    margin-right: 20px;
}

.header-content .logo img {
    border-radius: 10px;
    width: 160px;
    height: 160px;
}

/* Estilos para el texto en el encabezado */
.header-content .text {
    color: #000;
    text-align: center;
}

.header-content .text h1 {
    font-size: 1.5rem; /* Tamaño de fuente ajustado */
    margin: 0;
}

.header-content .text p {
    margin: 2px 0;
    font-size: 0.9rem;
}

.header-content .text .email {
    color: #1b1b41;
    font-weight: bold;
}

/* Form section styles */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid var(--border-color); /* Thicker, darker border */
    border-radius: 10px;
}

.form-section h5 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color); /* Thicker bottom border */
}

/* Form input styles */
.form-item {
    margin-bottom: 20px;
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color); /* Thicker border */
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(0, 167, 255, 0.4); /* More visible focus shadow */
    outline: none;
}

/* Radio button styles */
.form-item-triple {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 2px solid var(--border-color); /* Added border to radio section */
    border-radius: 5px;
}

.radio-label {
    color: var(--primary-color);
    font-weight: bold;
}

/* Submit button styles */
.submit {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width : 100%;
    margin-top: 20px;
    border-bottom: 3px solid var(--line-color); /* Added darker bottom border */
}

.submit:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Error message styles */
small.errorReq,
small.errorEmail,
small.errorNum,
small.errorChar {
    color: #ff3333;
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
}

.form-section {
    display: block;
}
.error {
    border: 2px solid red;
}

/* Responsive design */
@media (max-width: 768px) {
     .section {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
     .section {
        max-width: 400px;
    }
}