/**
 * PartyPortal Modern Forms & Interactive Workflows Design System
 * Shared styles for Membership Application, Donations, Contact, and Payment Gateway selectors
 */

/* ==========================================================================
   1. Shared Cards, Sections & Modern Headers
   ========================================================================== */

.section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
}

.section-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.section-header-modern {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-header-modern h5 {
    font-weight: 700;
    color: var(--portal-navy, #1B2A47);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.section-header-modern .section-subtext {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.section-icon-chip {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .aligned-field label {
        min-height: 2.35rem;
        display: flex;
        align-items: flex-end;
    }
}

/* ==========================================================================
   2. Form Controls, Input Groups & Focus States
   ========================================================================== */

.membership-form .form-label,
.donation-form .form-label,
.contact-form .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.membership-form .input-group,
.donation-form .input-group {
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.membership-form .input-group-text,
.donation-form .input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    color: #64748b;
    font-size: 1.05rem;
    padding: 0.62rem 0.95rem;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.membership-form .form-control,
.membership-form .form-select,
.donation-form .form-control,
.donation-form .form-select {
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    border-left: none;
    padding: 0.62rem 0.95rem;
    font-size: 0.94rem;
    color: #0f172a;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.membership-form .input-group:focus-within,
.donation-form .input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    border-radius: 10px;
}

.membership-form .input-group:focus-within .input-group-text,
.donation-form .input-group:focus-within .input-group-text {
    border-color: #f59e0b;
    color: #d97706;
    background-color: #fffbeb;
}

.membership-form .input-group:focus-within .form-control,
.membership-form .input-group:focus-within .form-select,
.donation-form .input-group:focus-within .form-control,
.donation-form .input-group:focus-within .form-select {
    border-color: #f59e0b;
    outline: none;
    box-shadow: none;
}

.membership-form .form-control:focus,
.membership-form .form-select:focus,
.donation-form .form-control:focus,
.donation-form .form-select:focus {
    box-shadow: none;
}

.contact-card .input-group-text {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.18);
}

/* ==========================================================================
   3. Nepal Payment Gateways Selection (eSewa, Khalti, Fonepay, ConnectIPS)
   ========================================================================== */

.gateway-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}

.gateway-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.gateway-card.active-gateway {
    border-width: 2px !important;
    border-style: solid !important;
    transform: translateY(-1px);
}

.gateway-card[data-gw-id="esewa"].active-gateway {
    border-color: #60BB46 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 4px 14px rgba(96, 187, 70, 0.22) !important;
}

.gateway-card[data-gw-id="khalti"].active-gateway {
    border-color: #5C2D91 !important;
    background-color: #faf5ff !important;
    box-shadow: 0 4px 14px rgba(92, 45, 145, 0.22) !important;
}

.gateway-card[data-gw-id="fonepay"].active-gateway {
    border-color: #DC143C !important;
    background-color: #fff1f2 !important;
    box-shadow: 0 4px 14px rgba(220, 20, 60, 0.22) !important;
}

.gateway-card[data-gw-id="connectips"].active-gateway {
    border-color: #0A3871 !important;
    background-color: #f0f4f9 !important;
    box-shadow: 0 4px 14px rgba(10, 56, 113, 0.22) !important;
}

/* ==========================================================================
   4. Membership Application Hero & Specific Components
   ========================================================================== */

.membership-card-container {
    max-width: 980px;
}

.membership-hero {
    background: linear-gradient(135deg, var(--portal-saffron-dark, #0f172a) 0%, var(--portal-saffron-deep, #1B2A47) 100%);
    border-bottom: 4px solid var(--portal-navy, #1B2A47);
    position: relative;
}

.membership-card {
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.pledge-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.pledge-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}

.pledge-item:last-child {
    margin-bottom: 0;
}

.pledge-item i {
    color: #d97706;
    font-size: 1rem;
    margin-right: 0.65rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.declaration-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.declaration-card:hover {
    border-color: #f59e0b;
    background: #fffdf5;
}

.btn-membership-pay {
    border-radius: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(96, 187, 70, 0.35);
}

.btn-membership-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 187, 70, 0.45);
}

/* ==========================================================================
   5. Kamal Samarpan (Donations) Specific Components
   ========================================================================== */

.donation-card-container {
    max-width: 980px;
}

.donation-hero {
    background: linear-gradient(135deg, var(--portal-navy-dark, #0f172a) 0%, var(--portal-navy, #1B2A47) 100%);
    border-bottom: 4px solid var(--portal-saffron, #F59E0B);
    position: relative;
}

.donation-card {
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.btn-donation-pay {
    border-radius: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(96, 187, 70, 0.35);
}

.btn-donation-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 187, 70, 0.45);
}

/* ==========================================================================
   6. Contact & Provincial Secretariats Specific Components
   ========================================================================== */

.contact-hero {
    background: linear-gradient(135deg, var(--portal-navy-dark, #0d1726) 0%, var(--portal-navy, #1B2A47) 100%);
    border-bottom: 4px solid var(--portal-saffron, #F59E0B);
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.contact-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.contact-info-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    transition: all 0.2s ease;
}

.contact-info-tile:hover {
    background: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
    transform: translateY(-2px);
}

.btn-contact-submit {
    border-radius: 12px;
    transition: all 0.25s ease;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
}

.contact-category-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.contact-category-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.contact-category-card.active-category {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18) !important;
}
