/* PDS Policy Lookup - Estilos */

.pds-policy-lookup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.pds-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pds-form-wrapper h2 {
    color: #00B3B5;
    font-size: 32px;
}

.pds-form-wrapper p {
    color: #7A7A7A;
    margin-bottom: 25px;
}

.pds-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pds-form .pds-submit-btn{
    width: fit-content;
    margin: 0 auto;
}
.pds-form .pds-submit-btn:hover svg{
    margin-left: 15px;
}
.pds-form .w-50{
    width: 50%;
}
.card-info{
    background-color: #EBF9FA;
    border-radius: 24px;
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.row{
    display: flex;
}
.text-align-start{
    text-align: start;
}
.text-align-start li{
    list-style: disc;
    color: gray;
}
.pds-form-group {
    display: flex;
    flex-direction: column;
}
.mt-5{
    margin-top: 3rem;
}
.mb-5{
    margin-bottom: 3rem;
}
.my-5{
    margin: 3rem 0;
}
.card-body-gray{
    width: 100%!important;
}
.pds-btn-text{
    color: #fff;
}
.card svg{
    margin-bottom: 0!important;
    color: #fff!important;
}
.pds-form-group label {
    color: #333;
    font-size: 14px;
}

.pds-form-group input[type="text"],
.pds-form-group input[type="email"],
.pds-form-group select {
    padding: 12px 15px;
    border: 1px solid #C8C8C8;
    border-radius: 12px;
    font-size: 20px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background-color: #F1F3F5CC;
}

.pds-form-group input[type="text"]:focus,
.pds-form-group input[type="email"]:focus,
.pds-form-group select:focus {
    outline: none;
    border-color: #00B3B5;
}

.pds-form-group input.pds-input-error {
    border-color: #dc3545;
}

.pds-form-group input.pds-input-error:focus {
    border-color: #dc3545;
}

.pds-form-group small {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    display: none;
}

.pds-error-message {
    color: #dc3545 !important;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.pds-form-group input:invalid:not(:placeholder-shown) + .pds-error-message,
.pds-form-group input:invalid:not(:placeholder-shown) ~ .pds-error-message {
    display: block;
}

.pds-form-group input:valid:not(:placeholder-shown) + .pds-error-message,
.pds-form-group input:valid:not(:placeholder-shown) ~ .pds-error-message {
    display: none;
}

.pds-form-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Radio buttons estilo botón */
.pds-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.pds-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    padding: 12px 24px;
    border: 1px solid #C8C8C8;
    border-radius: 12px;
    background-color: #F1F3F5;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.pds-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

.pds-radio-label span {
    font-size: 16px;
    color: #333;
    user-select: none;
    pointer-events: none;
}

.pds-radio-label:hover,
.pds-form-group input[type="text"]:hover,
.pds-form-group input[type="email"]:hover,
 .pds-form-group select:hover {
    color: #00B3B5;
    border-color: #00B3B5;
    background-color: #EBF9FA;
}

.pds-radio-label.active {
    background-color: #EBF9FA;
    border: 1px solid #00B3B5;
}

.pds-radio-label.active span {
    color: #00B3B5;
}

.pds-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.pds-submit-btn:hover {
    background: #005a87;
}

.pds-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pds-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Resultados */
.pds-results {
    margin-top: 30px;
    padding: 20px;
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pds-results.success {
    background: #f0f9f4;
    border: 1px solid #c3e6cb;
}

.pds-results.error {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.pds-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.pds-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.pds-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pds-alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.pds-policy-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pds-policy-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pds-policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.pds-policy-number {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.pds-policy-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pds-policy-status.active {
    background: #d4edda;
    color: #155724;
}

.pds-policy-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.pds-policy-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.pds-policy-detail {
    display: flex;
    flex-direction: column;
}

.pds-policy-detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.pds-policy-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Mensaje de gracias */
.pds-thank-you {
    text-align: center;
    padding: 40px 30px;
    animation: fadeIn 0.5s ease;
}

.pds-thank-you-content {
    max-width: 500px;
    margin: 0 auto;
}

.pds-thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.pds-thank-you h2 {
    color: #333;
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.pds-thank-you p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Spinner de envío de email */
.pds-email-sending {
    text-align: center;
    padding: 60px 30px;
    animation: fadeIn 0.3s ease;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pds-email-sending-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pds-email-sending-content .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
}

.pds-email-sending-content p {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Mensajes informativos (pólizas inactivas y 404) */
.pds-message-box {
    text-align: center;
    padding: 40px 30px;
    animation: fadeIn 0.5s ease;
}

.pds-message-content {
    max-width: 600px;
    margin: 0 auto;
}

.pds-message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.pds-message-box h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .pds-policy-lookup-container {
        padding: 10px;
    }
    
    .pds-form-wrapper {
        padding: 20px;
    }
    
    .pds-policy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pds-policy-details {
        grid-template-columns: 1fr;
    }
    
    .pds-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .pds-thank-you {
        padding: 30px 20px;
    }
    
    .pds-thank-you-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .pds-thank-you h2 {
        font-size: 24px;
    }
    
    .pds-email-sending {
        padding: 40px 20px;
    }
    
    .pds-message-box {
        padding: 30px 20px;
    }
    
    .pds-message-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .pds-message-box h2 {
        font-size: 20px;
    }
}
