/* Planilla de Pago container */
#planilla-pago {
    background: linear-gradient(135deg, #ffffff 50%, #f1f1f1 50%); /* Fondo más claro con gradiente suave */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 750px;
    padding: 35px 30px;
    position: relative;
    z-index: 2;
}

/* Header titles */
#planilla-pago h2,
#planilla-pago h3 {
    text-align: center;
    font-size: 2rem;
    color: #34495e; /* Títulos con color oscuro pero suave */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Form container */
#planilla-pago form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Input and Textarea styling */
#planilla-pago input,
#planilla-pago textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
    background-color: #ffffff; /* Fondo blanco para inputs y textarea */
    color: #2c3e50;
    transition: all 0.3s ease;
}

#planilla-pago input:focus,
#planilla-pago textarea:focus {
    border-color: #3498db; /* Azul brillante al enfocar */
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
    outline: none;
}

/* Labels */
#planilla-pago label {
    font-weight: 600;
    color: #34495e; /* Color oscuro para etiquetas */
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Table styles for order summary */
#planilla-pago table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

#planilla-pago thead {
    background-color: #34495e; /* Azul oscuro para encabezado de tabla */
    color: #ecf0f1; /* Texto blanco en encabezado */
}

#planilla-pago th, #planilla-pago td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#planilla-pago tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Color alternado para filas */
}

#planilla-pago #summary-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c; /* Color rojo para el total */
    margin-top: 20px;
}

/* Terms and conditions */
#planilla-pago .terms {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#planilla-pago .terms label {
    margin-left: 10px;
}

/* Link styling */
#planilla-pago .link {
    color: #3498db; /* Color azul brillante para los links */
    text-decoration: none;
    font-weight: 600;
}

#planilla-pago .link:hover {
    text-decoration: underline;
}

/* Button styles */
#planilla-pago .button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

#planilla-pago .btn-submit,
#planilla-pago .btn-cancel {
    padding: 14px 28px; /* Aumenté el padding para que sean más grandes */
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 260px;
}

/* Submit button */
#planilla-pago .btn-submit {
    background-color: #27ae60; /* Verde brillante */
    color: white;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    border: none;
}

#planilla-pago .btn-submit:hover {
    background-color: #2ecc71;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
    transform: translateY(-4px);
}

/* Cancel button */
#planilla-pago .btn-cancel {
    background-color: #e74c3c; /* Rojo brillante */
    color: white;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    border: none;
}

#planilla-pago .btn-cancel:hover {
    background-color: #c0392b;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    transform: translateY(-4px);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    #planilla-pago {
        padding: 25px;
        width: 100%;
        margin: 0 auto;
        margin-top: 200px;
    }

    #planilla-pago input,
    #planilla-pago textarea,
    #planilla-pago button {
        width: 100%;
    }

    #planilla-pago .button-group {
        flex-direction: column;
        gap: 15px;
    }

    #planilla-pago table {
        font-size: 0.95rem;
    }

    #planilla-pago #summary-total {
        font-size: 1.1rem;
    }
}

/* Animated background with wave effect */
#planilla-pago::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #bdc3c7 50%, #ecf0f1 50%); /* Suave transición entre dos tonos claros */
    z-index: -1;
    border-radius: 12px;
    animation: waveAnimation 5s ease-in-out infinite;
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Divider lines for sections */
#planilla-pago .divider {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Checkbox custom positioning */
#planilla-pago .terms {
    position: relative;
    padding-left: 35px;
    font-size: 0.95rem;
    align-items: flex-start;
}

/* Custom checkbox */
#planilla-pago .terms input {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}