/* ============================================
   COMPLETE PREMIUM PAYMENT FORM STYLING
   Matches Pricing Section Aesthetic
   ============================================ */

* {
    box-sizing: border-box;
}

/* General Form Styling */
.main-payment_cta {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    margin: 2rem auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.main-payment_cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Label Styling */
label {
    color: #e8e8e8;
    font-weight: 600;
    margin-bottom: 0.85rem;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

/* Input and Select Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 1.05rem 1.25rem;
    margin-bottom: 1.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 2.75rem;
}

select:hover {
    border-color: rgba(229, 9, 20, 0.3);
}

/* Option styling inside select */
select option {
    background: #1a1a2e;
    color: #f0f0f0;
    padding: 0.5rem;
}

select option:checked {
    background: linear-gradient(135deg, #e50914 0%, #c40812 100%);
    color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #e50914;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.18),
                inset 0 1px 2px rgba(229, 9, 20, 0.15);
}

/* WhatsApp Field Group */
.whatsapp-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.whatsapp-input-group select {
    width: auto;
    flex-shrink: 0;
    min-width: 145px;
    padding: 1.05rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.whatsapp-input-group input {
    flex-grow: 1;
    margin-bottom: 0;
    padding: 1.05rem 1.25rem;
}

/* Buttons */
button {
    width: 100%;
    color: white;
    background: linear-gradient(135deg, #e50914 0%, #c40812 100%);
    border: none;
    padding: 1.15rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.2px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 35px rgba(229, 9, 20, 0.35);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, #f40612 0%, #d40913 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(229, 9, 20, 0.45);
}

button:active {
    transform: translateY(-1px);
}

button[disabled] {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    color: #999;
    cursor: not-allowed;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: none;
}

button[disabled]:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#bank_transfer_payment-btn {
    background: linear-gradient(135deg, #4a5568 0%, #3a4556 100%);
    box-shadow: 0 12px 35px rgba(74, 85, 104, 0.3);
}

#bank_transfer_payment-btn:hover {
    background: linear-gradient(135deg, #5a6578 0%, #4a5566 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(74, 85, 104, 0.4);
}

/* Payment Method Selection Buttons */
#paypal_payment-btn,
#stripe_payment-btn,
#bank_transfer_payment-btn {
    width: auto;
    display: inline-block;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #e8e8e8 !important;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: none !important;
    text-transform: capitalize;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#paypal_payment-btn:hover,
#stripe_payment-btn:hover,
#bank_transfer_payment-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(229, 9, 20, 0.4) !important;
    color: #f0f0f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

#paypal_payment-btn:active,
#stripe_payment-btn:active,
#bank_transfer_payment-btn:active {
    transform: translateY(0) !important;
}
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.secure-payment-heading {
    color: #e8e8e8;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.payment-icons-container {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.payment-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(229, 9, 20, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.25);
}

.payment-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: brightness(0.95);
}

.payment-icon:hover img {
    filter: brightness(1.1);
}

/* ============================================
   RESPONSIVE STYLES FOR MOBILE
   ============================================ */

@media (max-width: 600px) {
    .main-payment_cta {
        padding: 1.75rem;
        margin: 1rem;
        border-radius: 12px;
    }

    label {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        padding: 0.95rem 1.1rem;
        font-size: 16px;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    button {
        padding: 1rem;
        font-size: 0.95rem;
        letter-spacing: 0.8px;
        margin-top: 0.4rem;
    }

    #paypal_payment-btn,
    #stripe_payment-btn,
    #bank_transfer_payment-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
        margin: 0.4rem 0.3rem 0.4rem 0;
    }

    .whatsapp-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .whatsapp-input-group select {
        width: 100%;
        margin-bottom: 0;
    }

    .payment-icons-container {
        gap: 1.2rem;
    }

    .payment-icon {
        width: 55px;
        height: 55px;
    }

    .secure-payment-heading {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 450px) {
    .main-payment_cta {
        padding: 1.5rem;
        margin: 0.75rem;
    }

    label {
        font-size: 0.85rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    button {
        font-size: 0.9rem;
        padding: 0.9rem 1rem;
    }

    button {
        padding: 0.95rem;
    }

    .payment-icons-container {
        gap: 0.8rem;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 360px) {
    .main-payment_cta {
        padding: 1.25rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        margin-bottom: 1.25rem;
    }

    .whatsapp-input-group {
        margin-bottom: 1.25rem;
    }

    .payment-icon {
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
    .main-payment_cta {
        background: linear-gradient(135deg, #0a0a15 0%, #151525 50%, #12152e 100%);
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        background-color: rgba(255, 255, 255, 0.03);
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    select:focus {
        background-color: rgba(255, 255, 255, 0.06);
    }
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-payment_cta {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional: Add animation to form fields on load */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Stagger animation for inputs */
input[type="text"]:nth-of-type(1),
input[type="email"],
input[type="tel"],
select {
    animation-delay: 0.1s;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .main-payment_cta {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        border: 2px solid rgba(255, 255, 255, 0.25);
    }

    button {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}