/* Formulario de Cumpleaños - Estilos */

.fc-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fc-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.fc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fc-field {
    display: flex;
    flex-direction: column;
}

.fc-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

.fc-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

.fc-field input[type="text"],
.fc-field input[type="number"],
.fc-field input[type="date"],
.fc-field input[type="tel"],
.fc-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.fc-field input:focus,
.fc-field select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Sección de cámara */
.fc-photo-field {
    border: 2px dashed #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.fc-camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#fc-video,
#fc-preview {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: cover;
}

#fc-preview {
    background: #f0f0f0;
}

.fc-camera-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones */
.fc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fc-btn-primary {
    background: #4CAF50;
    color: white;
    width: 100%;
}

.fc-btn-primary:hover {
    background: #45a049;
}

.fc-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fc-btn-secondary {
    background: #2196F3;
    color: white;
}

.fc-btn-secondary:hover {
    background: #0b7dda;
}

/* Mensajes */
.fc-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.fc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.fc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-container {
        padding: 20px;
        margin: 15px;
    }

    .fc-camera-buttons {
        flex-direction: column;
    }

    .fc-btn-secondary {
        width: 100%;
    }
}

/* Loader */
.fc-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: fc-spin 1s linear infinite;
}

@keyframes fc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
