/* ============================
   COMMON FORM STYLES
   Consistent across all pages
============================= */

/* Prevent page scroll on button/link clicks */
button, a, .btn, [role="button"], [onclick] {
    -webkit-tap-highlight-color: transparent;
}

button:focus, a:focus, .btn:focus {
    outline: none;
}

/* Form Controls - Inputs, Selects, Textareas */
.form-control, .form-select {
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    padding: 0.65rem 0.85rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    background-color: #ffffff !important;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f97316' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.form-control:focus, .form-select:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 0.3rem rgba(249, 115, 22, 0.15), 0 1px 3px rgba(0,0,0,0.08) !important;
    outline: none !important;
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: #fed7aa !important;
    background-color: #f8fafc !important;
}

.form-control-lg {
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

.form-control-lg:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 0.3rem rgba(249, 115, 22, 0.15), 0 1px 3px rgba(0,0,0,0.08) !important;
}

textarea.form-control {
    min-height: 100px !important;
    resize: vertical !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
}

/* Form Labels */
.form-label {
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.7rem !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: 0.2px !important;
}

.form-label i {
    margin-right: 0.7rem !important;
    color: #f97316 !important;
    font-size: 1.2rem !important;
    min-width: 1.5rem !important;
    text-align: center !important;
}

/* Buttons - Consistent Style */
.btn {
    font-weight: 700 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.7rem 1.5rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.12) !important;
}

.btn i {
    font-size: 1.05rem !important;
}

.btn-primary {
    background: #f97316 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #b45309 !important;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.16) !important;
    transform: none !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #06b6d4 !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: #0891b2 !important;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.16) !important;
    transform: none !important;
    color: #ffffff !important;
}

.btn-success {
    background: #22c55e !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background: #16a34a !important;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.16) !important;
    transform: none !important;
    color: #ffffff !important;
}

.btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.16) !important;
    transform: none !important;
    color: #ffffff !important;
}

.btn-warning {
    background: #f59e42 !important;
    color: #ffffff !important;
}

.btn-warning:hover {
    background: #d68910 !important;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.16) !important;
    transform: none !important;
    color: #ffffff !important;
}

.btn-lg {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.85rem !important;
}

.btn-sm {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 0 !important;
}

.btn-outline-warning {
    border: 2px solid #f59e42 !important;
    color: #f59e42 !important;
    background: white !important;
    border-radius: 0 !important;
}

.btn-outline-warning:hover {
    background: #f59e42 !important;
    color: white !important;
    border-color: #f59e42 !important;
    transform: none !important;
}

/* Cards */
.card, .form-card, .payment-card {
    background: white !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    transition: none !important;
}

.card:hover, .form-card:hover, .payment-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Card Headers */
.card-header, .payment-card-header {
    padding: 1.5rem 1.8rem !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08)) !important;
    border-bottom: 2px solid rgba(249, 115, 22, 0.2) !important;
    letter-spacing: 0.3px !important;
}

.card-header i, .payment-card-header i {
    font-size: 1.4rem !important;
    color: #f97316 !important;
}

/* Section Headers */
.section-header {
    padding: 1rem 1.5rem !important;
    border-radius: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.section-header h4 {
    margin: 0 !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    letter-spacing: 0.3px !important;
}

/* Alerts */
.alert {
    border-radius: 0 !important;
    padding: 1.25rem !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
    border: 1px solid #22c55e !important;
    color: #15803d !important;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%) !important;
    border: 1px solid #ef4444 !important;
    color: #b91c1c !important;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 66, 0.1) 0%, rgba(245, 158, 66, 0.05) 100%) !important;
    border: 1px solid #f59e42 !important;
    color: #92400e !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid #3b82f6 !important;
    color: #1e293b !important;
}

/* Mobile Responsive Form Styles */
@media (max-width: 768px) {
    .form-control, .form-select {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.88rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-label i {
        font-size: 1rem !important;
        margin-right: 0.5rem !important;
    }
    
    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem !important;
    }
    
    .card-header, .payment-card-header {
        padding: 1rem 1rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .form-control, .form-select {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
    
    .form-label {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .form-label i {
        font-size: 0.9rem !important;
        margin-right: 0.4rem !important;
        min-width: 1.2rem !important;
    }
    
    .btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    .btn-lg {
        padding: 0.55rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .card-header, .payment-card-header {
        padding: 0.75rem 0.75rem !important;
        font-size: 0.95rem !important;
    }
    
    .card-header i, .payment-card-header i {
        font-size: 1.1rem !important;
    }
    
    .section-header {
        padding: 0.75rem 1rem !important;
        margin: 1rem 0 0.75rem 0 !important;
    }
    
    .section-header h4 {
        font-size: 1.1rem !important;
    }
    
    .alert {
        padding: 0.875rem !important;
    }
}
