/* ===============================
   GLOBAL FORM STYLING UPDATED ON 13-02-2026
================================= */

.form-group label, .id-proof-label {
    @apply text-gray-700 font-semibold mb-1 text-sm tracking-wide;
}

/* Smooth input transition */
.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    padding: 0.65rem 0.9rem;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

/* Hover */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #9ca3af;
    background-color: #ffffff;
}

/* PREMIUM FOCUS EFFECT */
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #22c55e !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    outline: none;
    transform: scale(1.01);
}

/* ===============================
   ERROR STATES
================================= */

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.error-message {
    @apply text-red-500 text-xs mt-1 hidden font-medium;
}

/* ===============================
   FORM SECTION CARD STYLE
================================= */

.form-section {
    @apply p-5 md:p-6 mb-8 rounded-2xl border border-gray-100 bg-white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Section Title */
.form-section-title {
    @apply text-lg md:text-xl font-bold text-green-700 mb-5 pb-2;
    border-bottom: 2px solid #e6f4ea;
}

/* ===============================
   GRADIENT HEADER (GLASS LOOK)
================================= */

.gradient-header {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===============================
   BUTTONS
================================= */

.btn-primary {
    @apply py-2.5 px-6 text-white rounded-xl text-sm md:text-base font-semibold transition-all;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 6px 14px rgba(34,197,94,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22,163,74,0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===============================
   CHECKBOX & RADIO
================================= */

.checkbox-label input[type="checkbox"],
.custom-radio {
    @apply w-5 h-5 text-green-600 border-gray-300 rounded focus:ring-green-500;
}

/* ===============================
   FILE & PREVIEW BOXES
================================= */

.id-proof-preview,
.signature-preview {
    @apply relative w-full h-32 border-2 border-dashed border-gray-300 bg-gray-50 rounded-xl flex items-center justify-center overflow-hidden cursor-pointer transition-all;
}

.id-proof-preview:hover,
.signature-preview:hover {
    border-color: #22c55e;
    background-color: #f0fdf4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.id-proof-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cancel-button {
    @apply absolute top-2 right-2 bg-red-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs z-10 shadow-md;
}

/* ===============================
   TABLE STYLING (MODERN)
================================= */

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

th {
    background: #f0fdf4;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tr:hover {
    background-color: #f0fdf4;
}

/* ===============================
   TERMS BOX
================================= */

.terms {
    @apply p-4 border border-gray-200 rounded-xl bg-gray-50 max-h-60 overflow-y-auto mb-4 shadow-inner text-sm;
}

/* ===============================
   REQUIRED STAR
================================= */

.required label:after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

/* ===============================
   SUCCESS ANIMATION
================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    animation: fadeInUp 0.4s ease-out;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 640px) {
    .form-section {
        @apply p-4;
    }

    .form-section-title {
        @apply text-base;
    }

    .btn-primary {
        @apply py-2 px-4 text-sm;
    }
}
