/* Estilos para el formulario de pago Paycom Credomatic */

.paycom-payment-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: #1a1a3a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #f5f5f5;
}

.paycom-header {
    margin-bottom: 25px;
    text-align: center;
}

.paycom-header h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffffff;
}

.package-selector {
    margin-bottom: 20px;
    text-align: left;
}

.package-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #dddddd;
    font-weight: bold;
}

.package-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a3a5a;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 16px;
    color: #ffffff;
    box-sizing: border-box;
}

.package-selector select:focus {
    outline: none;
    border-color: #6a6af0;
    box-shadow: 0 0 0 2px rgba(106,106,240,0.3);
}

.package-selector option {
    background: #1a1a3a;
    color: #ffffff;
}

#package-details {
    margin-bottom: 20px;
}

.transaction-amount-container {
    text-align: center;
    margin-bottom: 20px;
}

.transaction-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    text-align: center;
}

.transaction-amount .amount {
    color: #FFDD35;
    font-size: 26px;
}

.transaction-amount-usd {
    font-size: 16px;
    color: #aaaaaa;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

.services-container {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: left;
}

.service-title {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.service-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-category-name {
    font-size: 15px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
}

.service-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.service-list li {
    color: #dddddd;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.card-details {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.card-number-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-number-label .label-text {
    font-size: 14px;
    color: #dddddd;
}

.card-logos {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-logos img {
    height: 20px;
    width: auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.expiry-date {
    flex: 1;
}

.cvv-code {
    flex: 1;
}

.paycom-payment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #dddddd;
}

.required {
    color: #ff6b6b;
}

.field-hint {
    display: block;
    font-size: 11px;
    color: #aaaaaa;
    margin-top: 4px;
}

.paycom-payment-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a3a5a;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 16px;
    color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.paycom-payment-form input[type="text"]:focus {
    outline: none;
    border-color: #6a6af0;
    box-shadow: 0 0 0 2px rgba(106,106,240,0.3);
}

.field-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 1px #ff6b6b !important;
}

.paycom-error-message {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
    color: #ff9a9a;
}

.paycom-error-message p {
    margin: 0;
    font-size: 14px;
}

.paycom-error-message ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.paycom-error-message li {
    margin-bottom: 5px;
}

.payment-notice {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 13px;
    color: #dddddd;
}

.payment-notice p {
    margin: 0;
}

.test-mode {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #fff3cd;
}

.form-actions {
    margin-top: 20px;
}

.paycom-submit-button {
    width: 100%;
    padding: 14px;
    background: #6b5be6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.paycom-submit-button:hover:not(:disabled) {
    background: #574ad8;
}

.paycom-submit-button:disabled {
    background: #4a4a6a;
    cursor: not-allowed;
    opacity: 0.6;
}

.security-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #aaaaaa;
}

.security-info > span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bac-logo {
    margin-left: 8px;
    height: 24px;
    width: 80px;
    object-fit: contain;
}

.security-notice {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9a9a9a;
}

.security-notice img {
    height: 35px;
    object-fit: cover;
    width: 35px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .paycom-payment-container {
        padding: 15px;
    }
    
    .card-logos img {
        height: 16px;
    }
    
    .transaction-amount {
        font-size: 20px;
    }
    
    .transaction-amount .amount {
        font-size: 22px;
    }
    
    .transaction-amount-usd {
        font-size: 14px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#package-details {
    animation: fadeIn 0.3s ease-in-out;
}

.paycom-error-message {
    animation: fadeIn 0.3s ease-in-out;
}