﻿/* ==========================================
   STUDENT ENQUIRY FORM - MODERN STYLING
   Compatible with Bootstrap 5
   ========================================== */

/* Root Variables for Consistent Theming */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.condensed-list .list-group-item {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.download-icon i {
    font-size: 1rem;
}

.download-icon:hover {
    color: #0d6efd; /* Bootstrap primary color on hover */
}

.fw-semibold {
    font-weight: 600;
}
/* Global Body and Container Styling */
body {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-light) 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    line-height: 1.5;
    min-height: 100vh;
}

/* Main Container */
.admit-area {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 1.5rem 82px;*/
}

    /* Header Image Styling */
    .admit-area .text-center img {
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
        object-fit: cover;
        margin-bottom: 1.5rem;
    }

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--white);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

.card-body {
    padding: 0.6rem 1.45rem;
}

/* Page Titles */
.page-title-0 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    /*margin-bottom: 1.5rem;*/
    position: relative;
    /*padding-bottom: 0.5rem;*/
}

    .page-title-0::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
        border-radius: 2px;
    }

/* Form Labels */
label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.7rem 1rem;
    font-size: 0.925rem;
    transition: var(--transition);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.25rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        outline: none;
        background-color: var(--white);
    }

    .form-control:hover:not(:focus), .form-select:hover:not(:focus) {
        border-color: var(--gray-300);
    }

/* Textarea specific styling */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Select2 Integration */
.select2-container .select2-selection--single {
    height: calc(2.75rem + 2px) !important;
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--border-radius) !important;
    padding: 0.7rem 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.25rem !important;
    padding-left: 0 !important;
    color: var(--gray-700) !important;
}

/* Checkbox and Radio Styling */
.form-check {
    padding: 0.5rem 1rem;
    /*margin-bottom: 0.75rem;*/
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.75rem;
    border: 2px solid var(--gray-400);
    transition: var(--transition);
}

    .form-check-input[type="checkbox"] + .form-check-label {
        margin-top: 8px;
    }



    .form-check-input:hover {
        border-color: var(--primary-color);
    }

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        border-color: var(--primary-color);
    }

.form-check-label {
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    flex: 1;
    line-height: 1.4;
}

/* Table Styling - Clean and light header */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
    background: var(--white);
    font-size: 0.925rem;
}

    .table thead th {
        background: var(--gray-100);
        color: var(--gray-800);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        font-size: 0.825rem;
        padding: 0.85rem 1rem;
        border: none;
        border-bottom: 2px solid var(--gray-200);
    }

    .table tbody td {
        padding: 0.85rem 1rem;
        border-color: var(--gray-200);
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: var(--gray-50);
    }

    /* Table form controls */
    .table .form-control, .table .form-select {
        margin: 0;
        font-size: 0.875rem;
        padding: 0.6rem 0.8rem;
    }

/* Button Styling */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.75rem;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-hover), #1e40af);
        border-color: var(--primary-hover);
        box-shadow: var(--shadow-lg);
        transform: translateY(-1px);
    }

    .btn-primary:focus {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3), var(--shadow);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }

/* Modal Footer */
.modal-footer {
    background: var(--gray-50);
    border-top: 2px solid var(--gray-200);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 1.25rem 1.75rem;
}

/* Dividers */
.divider {
    position: relative;
    margin: 1.75rem 0;
    text-align: center;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
    }

.divider-text {
    background: var(--white);
    padding: 0 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admit-area {
        padding: 1.25rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .page-title-0 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .form-check {
        padding: 0.5rem 0.75rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .admit-area {
        padding: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .page-title-0 {
        font-size: 1.15rem;
    }

    .form-control, .form-select {
        padding: 0.65rem 0.9rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .table-responsive-mobile {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .table-responsive-mobile table {
            width: 100%;
            min-width: 600px;
            border-collapse: collapse;
        }

    .page-title-0 {
        font-size: 1.2rem; /* or your desired size */
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}
