﻿
.homesite .mt-5 {
    margin-top: 1rem !important;
}

.reg-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 220px) !important;
    padding: 7rem 1rem !important;
    background-color: #f8fafc !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.reg-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 3rem 2.5rem !important;
    width: 100% !important;
    max-width: 650px !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

    .reg-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    }

.reg-title {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    display: block !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    line-height: 1.25 !important;
}

    .reg-title::after {
        content: '';
        display: block;
        width: 50px;
        height: 4px;
        background: linear-gradient(90deg, #0B47A8 0%, #3b82f6 100%);
        border-radius: 2px;
        margin: 0.75rem auto 0;
    }

.form-label-custom {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.text-danger {
    color: #ef4444 !important;
}

.custom-input {
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    padding: 10px 16px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

    .custom-input:focus {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
        background-color: #fff !important;
        outline: none !important;
    }

.custom-select {
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    padding: 5px 16px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem !important;
    padding-right: 2.5rem !important;
}

    .custom-select:focus {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
        background-color: #fff !important;
        outline: none !important;
    }

.custom-listbox {
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    padding: 10px 12px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

    .custom-listbox:focus {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
        background-color: #fff !important;
        outline: none !important;
    }

.custom-btn {
    background: linear-gradient(135deg, #0B47A8 0%, #1E3A8A 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    width: 100% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(11, 71, 168, 0.15), 0 2px 4px -1px rgba(11, 71, 168, 0.1) !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-block !important;
    margin-top: 1rem !important;
}

    .custom-btn:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 15px -3px rgba(11, 71, 168, 0.25), 0 4px 6px -2px rgba(11, 71, 168, 0.15) !important;
    }

    .custom-btn:active {
        transform: translateY(0px) !important;
    }

.validation-message {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #ef4444 !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

    .validation-message span {
        color: #ef4444 !important;
    }

/*.custom-radio-list {
            display: flex !important;
            align-items: center;
            gap: 40px;
        }

            .custom-radio-list input[type="radio"] {
                margin-right: 6px;
            }

            .custom-radio-list label {
                margin-right: 20px;
                display: flex;
                align-items: center;
            }*/

/* Container */
.gender-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    /* Hide radio button */
    .gender-radio input[type="radio"] {
        display: none;
    }

    /* Pill button style */
    .gender-radio label {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border: 1px solid #cbd5e1;
        border-radius: 25px;
        background-color: #f8fafc;
        cursor: pointer;
        flex: 1 1 120px;
        min-width: 100px;
        transition: all 0.2s ease;
        box-sizing: border-box;
        font-size: 0.95rem;
        color: #334155;
        font-weight: 500;
    }

        /* Hover */
        .gender-radio label:hover {
            border-color: #2563eb;
            background-color: #eff6ff;
            color: #1d4ed8;
        }

    /* Selected state */
    .gender-radio input[type="radio"]:checked + label {
        background-color: #2563eb;
        color: #fff;
        border-color: #2563eb;
    }

/* ─── Student Registration – Scrollable Checkbox List (scoped) ───────── */

/* Scrollable outer box */
.reg-card .checkbox-container {
    height: 200px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 8px 10px !important;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04) !important;
}

    /* Thin custom scrollbar */
    .reg-card .checkbox-container::-webkit-scrollbar {
        width: 5px;
    }

    .reg-card .checkbox-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .reg-card .checkbox-container::-webkit-scrollbar-thumb {
        background: #bfdbfe;
        border-radius: 10px;
    }

        .reg-card .checkbox-container::-webkit-scrollbar-thumb:hover {
            background: #93c5fd;
        }

/* Each span ASP.NET wraps around an input+label pair */
.reg-card .checkbox-list span {
    display: block !important;
}

/* Each row: checkbox + name side by side */
.reg-card .checkbox-list label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    user-select: none !important;
}

    /* Hover row highlight */
    .reg-card .checkbox-list label:hover {
        background: #eff6ff !important;
        color: #1d4ed8 !important;
    }

/* Separator between rows */
.reg-card .checkbox-list span + span label {
    border-top: 1px solid #f1f5f9 !important;
}

/* Custom square checkbox */
.reg-card .checkbox-list input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    margin: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: border-color 0.18s ease, background 0.18s ease !important;
}

    /* Checked checkbox: blue fill + white tick */
    .reg-card .checkbox-list input[type="checkbox"]:checked {
        background: #2563eb !important;
        border-color: #2563eb !important;
    }

        .reg-card .checkbox-list input[type="checkbox"]:checked::after {
            content: '' !important;
            display: block !important;
            width: 4px !important;
            height: 8px !important;
            border: 2px solid #fff !important;
            border-top: none !important;
            border-left: none !important;
            transform: rotate(45deg) !important;
            position: absolute !important;
            top: 1px !important;
            left: 5px !important;
        }

/* Checked row: blue tint */
.reg-card .checkbox-list label:has(input[type="checkbox"]:checked) {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.chk-list label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

.chk-list input {
    margin-right: 6px;
}

    .chk-list input[type="checkbox"] {
        margin-right: 10px !important;
        vertical-align: middle;
    }

.chk-list label {
    display: inline-block;
    margin-left: 10px !important;
    vertical-align: middle;
}
