/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.pm-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    
  gap: 20px;
  background: #F8F9FA;
  border-radius: 20px;
 padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#pm_ti {
    font-family: "Poppins";
    font-size: 24px;
    font-weight: 600;
    color: #000;
        text-align: center;
}

.pm-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.pm-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.pm-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.pm-row-1 {
    display: grid;
    grid-template-columns: 1fr;
}

.pm-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.pm-form__label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.pm-form-input,
.pm-form-select {
    width: 100%;
    padding: 14px 15px !important;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff !important;
    color: #333 !important;
    box-sizing: border-box;
    height: 42px;
    
}

.pm-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
    background-color: #ffffff;
        padding: 12px !important;
}

.pm-form-input::placeholder,
.pm-form-select::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    opacity: 1;
}

.pm-form-input:focus,
.pm-form-select:focus {
    outline: none;
    border-color: #000;
}

/* ========== FOOTER - LAYOUT VERTICAL CENTRADO ========== */
.pm-form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    padding: 10px;
}

/* Legal - centrado */
.pm-legal-check {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: #666;
    justify-content: center;
}

.pm-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.pm-checkbox-label a {
    color: #000;
    text-decoration: underline;
}

.pm-checkbox-label a:hover {
    text-decoration: none;
}

/* reCAPTCHA - centrado */
.pm-recaptcha {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pm-recaptcha .g-recaptcha {
    margin: 0 auto;
}

/* Botón - centrado */
.pm-form__button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 20px 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    height: 60px;
    min-width: 250px;
}

.pm-form__button:hover {
    opacity: 0.8;
}

/* Mensajes */
.pm-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 0;
    display: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.pm-form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pm-form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}




.pm-form-footer,
.pm-form-footer * {
    box-sizing: border-box !important;
}

.pm-form-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 20px !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Forzar que cada elemento ocupe su propia línea */
.pm-legal-check,
.pm-recaptcha,
.pm-form-footer .pm-form__button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

.pm-legal-check {
    order: 1 !important;
}

.pm-recaptcha {
    order: 2 !important;
}

.pm-form-footer .pm-form__button {
    order: 3 !important;
    position: relative !important;
    margin: 0 auto !important;
}

/* Forzar el checkbox label a ocupar su propia línea */
.pm-checkbox-label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
}

.pm-checkbox-label input[type="checkbox"] {
    flex-shrink: 0 !important;
}

/* Forzar reCAPTCHA a ocupar su propia línea */
.pm-recaptcha .g-recaptcha {
    margin: 0 auto !important;
    display: block !important;
}

/* Botón */
.pm-form__button {
    display: inline-block !important;
    min-width: 250px !important;
    white-space: nowrap !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pm-form__button {
        width: 100% !important;
        min-width: unset !important;
        white-space: normal !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pm-row-3,
    .pm-row-2 {
        grid-template-columns: 1fr;
    }
    
    .pm-row-1 {
        grid-template-columns: 1fr;
    }
    
    .pm-form-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .pm-legal-check {
        width: 100%;
        justify-content: center;
    }
    
    .pm-checkbox-label {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .pm-form__button {
        width: 100%;
        min-width: unset;
    }
}