/* Encapsulado dentro de .frc-wrapper para no afectar al resto de la página */

.frc-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.frc-wrapper {
    font-family: 'Lato', sans-serif;
    color: #fff;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Contenedor del formulario */
.frc-wrapper form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fila simple */
.frc-wrapper .fila {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Fila doble */
.frc-wrapper .fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .frc-wrapper .fila-doble {
        grid-template-columns: 1fr;
    }
}

/* Campo individual */
.frc-wrapper .campo {
    display: flex;
    flex-direction: column;
}

/* Labels */
.frc-wrapper label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ccc;
}

/* Inputs */
.frc-wrapper input,
.frc-wrapper select,
.frc-wrapper textarea {
    background-color: #ffffff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 16px;
    color: #000000;
    font-size: 16px;
    width: 100%;
    font-family: 'Lato', sans-serif;
    height: 56px;
}

.frc-wrapper input::placeholder,
.frc-wrapper textarea::placeholder {
    color: #666;
}

.frc-wrapper input:focus,
.frc-wrapper select:focus,
.frc-wrapper textarea:focus {
    outline: none;
    border-color: #D400A0;
}

.frc-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.frc-wrapper textarea {
    resize: vertical;
}

.frc-wrapper .frc-error {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
/* Botones */
.frc-wrapper .fila-botones {
    margin-top: 10px;
}

.frc-wrapper button {
    width: 100%;
    padding: 20px;
    background-color: #D400A0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.frc-wrapper button:hover {
    background-color: #F020B8;
}

/* Popup de notificación */
.frc-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    padding: 24px 36px;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.6);
    border-bottom: 3px solid;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.frc-toast.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.frc-toast.warning { border-color: #E8A020; }
.frc-toast.error   { border-color: #c0392b; }
.frc-toast.success { border-color: #D400A0; }
