/* ============================================
   FORM PAGES - SEND CARD, WITHDRAW, SERVICES
   ============================================ */

/* Common Form Wrapper */
.send-card-wrapper,
.withdraw-wrapper,
.service-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.75rem 2rem;
    margin-top: 1.25rem;
}

.withdraw-wrapper {
    margin-bottom: 2rem;
}

/* Header Simple */
.card-header-simple {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-header-simple h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.card-header-simple h3 i {
    color: #667eea;
    margin-right: 0.4rem;
    font-size: 1rem;
}

.card-header-simple p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* Form Styling - Grid Layout */
form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.form-group-custom {
    margin-bottom: 0;
}

.form-group-custom label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

.required {
    color: #dc3545;
}

.form-control-custom {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    transition: all 0.3s;
    background: #fff;
}

.form-control-custom:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

.form-control-custom::placeholder {
    color: #adb5bd;
}

/* Form Row - inline in grid */
.form-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Submit Button */
.btn-submit {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Alerts */
.alert-info-custom,
.alert-warning-custom {
    padding: 0.85rem 1.15rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border: none;
}

.alert-info-custom {
    background: #e7f3ff;
    color: #0c5aa6;
}

.alert-warning-custom {
    background: #fff3cd;
    color: #856404;
}

.alert-info-custom i,
.alert-warning-custom i {
    font-size: 1.1rem;
}

.alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.25rem;
}

/* ============================================
   FEE TABLE - SIMPLE & CLEAN
   ============================================ */

.fee-table-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.fee-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fee-header i {
    color: #fff;
    font-size: 1rem;
}

.fee-header span {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.fee-table {
    width: 100%;
    margin: 0;
}

.fee-table thead {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.fee-table thead th {
    padding: 0.75rem 0.65rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
    text-align: center;
    border-bottom: 2px solid #667eea;
}

.fee-table thead th.text-start {
    text-align: left;
    padding-left: 1.25rem;
}

.fee-table tbody tr {
    transition: all 0.2s;
}

.fee-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.fee-table tbody tr:hover {
    background: linear-gradient(to right, #f0f4ff, #f8f9fa);
}

.fee-table tbody td {
    padding: 0.7rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.card-name-simple {
    text-align: left !important;
    padding-left: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.card-name-simple img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.fee-rate {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.3s;
}

.fee-rate:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(16, 185, 129, 0.3);
}

/* Game Card - Pink Theme */
.fee-header-game {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.fee-table thead th {
    border-bottom-color: #8b5cf6;
}

.fee-rate-game {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.2);
}

.fee-rate-game:hover {
    box-shadow: 0 3px 6px rgba(236, 72, 153, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .send-card-wrapper,
    .withdraw-wrapper,
    .service-wrapper {
        padding: 1.25rem;
        margin-top: 1rem;
    }
    
    .card-header-simple {
        margin-bottom: 1.25rem;
        padding-bottom: 0.85rem;
    }
    
    .card-header-simple h3 {
        font-size: 1.15rem;
    }
    
    .card-header-simple p {
        font-size: 0.85rem;
    }
    
    form {
        grid-template-columns: 1fr 1fr;
    }
    
    .fee-header {
        padding: 0.75rem 1rem;
    }
    
    .fee-table thead th,
    .fee-table tbody td {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .card-name-simple {
        padding-left: 1rem !important;
        font-size: 0.85rem;
    }
    
    .card-name-simple img {
        width: 24px;
        height: 24px;
    }
    
    .fee-rate {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .send-card-wrapper,
    .withdraw-wrapper,
    .service-wrapper {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .card-header-simple {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .card-header-simple h3 {
        font-size: 1.1rem;
    }
    
    form {
        grid-template-columns: 1fr;
    }
    
    .form-group-custom label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .form-control-custom {
        padding: 0.6rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-submit {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .fee-table-wrapper {
        border-radius: 8px;
    }
}
