/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #000000;
    border: 3px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle span {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: 2px;
}

/* Contenedor del formulario */
.form-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 25px;
}

/* Etiqueta para campos con título visible */
.input-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-container:focus-within {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.input-container i {
    padding: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
    transition: color 0.3s ease;
}

.input-container:focus-within i {
    color: #ffffff;
}

/* Inputs y select */
input, select, textarea {
    flex: 1;
    padding: 15px 15px 15px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Select específico */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: #000000;
    color: #ffffff;
    padding: 10px;
}

/* Custom Select Styles */
.custom-select-container {
    position: relative;
}

/* Permitir que el dropdown del custom select se muestre fuera del contenedor */
.input-container.custom-select-container {
    overflow: visible;
}

.custom-select {
    position: relative;
    flex: 1;
    cursor: pointer;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 15px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
}

.select-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.select-text.has-value {
    color: #ffffff;
}

.select-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow: hidden;
}

.custom-select.open .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-search {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

.select-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px 0;
}

.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.select-option {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.select-option:hover,
.select-option.highlighted {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffffff;
    transform: translateX(5px);
}

.select-option.selected {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left-color: #ffffff;
    font-weight: 500;
}

.select-option.hidden {
    display: none;
}

/* Animaciones para el custom select */
@keyframes selectSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-select.open .select-dropdown {
    animation: selectSlideIn 0.3s ease-out;
}

/* Textarea específico */
.textarea-container {
    align-items: flex-start;
}

.textarea-container i {
    padding-top: 18px;
}

textarea {
    resize: vertical;
    min-height: 100px;
    padding-top: 15px;
}

/* Botón de envío */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .form-container h1 {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-circle span {
        font-size: 18px;
    }
    
    .input-container {
        border-radius: 10px;
    }
    
    input, select, textarea {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 15px;
    }
    
    .form-container h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-container i {
        padding: 12px;
        min-width: 45px;
    }
    
    input, select, textarea {
        padding: 12px 12px 12px 0;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 1rem;
    }
}

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

.form-container {
    animation: fadeInUp 0.6s ease-out;
}
.input-container.is-valid {
    border-color: #ffffff;
    border-width: 1px;
}

.input-container.is-invalid {
    border-color: #ff0000;
    border-width: 2px;
}

/* Tilde de validación (pequeña y verdesita) */
.valid-check {
    position: absolute;
    right: 12px;
    color: #2ecc71; /* verde suave */
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Evitar superposición con el arrow del custom select */
.input-container.custom-select-container .valid-check {
    right: 36px;
}
