/* Contenedor Maestro */
.fcm-wrapper {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
    transition: height 0.3s ease;
}

.fcm-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px; /* Bordes muy redondeados y modernos */
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: opacity 0.3s ease;
    border: 1px solid #f0f0f0;
}

.fcm-row {
    display: flex;
    gap: 20px;
}

.fcm-row .fcm-group {
    flex: 1;
}

.fcm-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.fcm-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.fcm-group input,
.fcm-group select,
.fcm-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eaeaea;
    border-radius: 14px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.fcm-group input:focus,
.fcm-group select:focus,
.fcm-group textarea:focus {
    border-color: #222;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Menú desplegable elegante */
.fcm-select-wrapper {
    position: relative;
}
.fcm-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.fcm-select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

/* Bloque del CAPTCHA */
.fcm-captcha-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 14px;
    border: 1px dashed #ccc;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}
.fcm-captcha-group label {
    margin: 0;
    flex: 2;
}
.fcm-captcha-group input {
    flex: 1;
    text-align: center;
}

/* Botón Elegante */
.fcm-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px; /* Estilo píldora/elegante */
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease, transform 0.1s ease;
    margin-top: 10px;
}

.fcm-btn:hover {
    background: #333;
    transform: translateY(-2px);
}
.fcm-btn:active {
    transform: scale(0.98);
}
.fcm-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.fcm-error {
    color: #e63946;
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
}

/* Mensaje de éxito que ocupa el espacio del form */
.fcm-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    background: #f0fdf4;
    border-radius: 24px;
    border: 1px solid #bbf7d0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fcm-success-message h3 {
    color: #166534;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.fcm-success-message p {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .fcm-row {
        flex-direction: column;
        gap: 0;
    }
    .fcm-captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .fcm-captcha-group input {
        width: 100%;
    }
}