/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700&display=swap');

/* --- ตัวแปรสี (CSS Variables) --- */
:root {
    --primary-color: #0056b3; /* สีน้ำเงินเข้ม */
    --secondary-color: #28a745; /* สีเขียว */
    --light-gray: #f8f9fa;
    --dark-text: #343a40;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* --- การตั้งค่าทั่วไป --- */
body {
    font-family: 'Kanit', sans-serif;
    background-color: #f4f7f6;
    color: var(--dark-text);
    line-height: 1.6;
}

/* --- Navbar (เมนู) --- */
.navbar {
    transition: all 0.3s ease;
}
.navbar-brand strong {
    color: var(--primary-color);
}
.nav-link {
    font-weight: 500;
}
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* --- Hero Section (ส่วนหัวใหญ่) --- */
.hero-section {
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.85), rgba(40, 167, 69, 0.85)), url('https://images.unsplash.com/photo-1614037119934-5573ba137a85?q=80&w=1974');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- Section Title --- */
.section-title {
    color: var(--dark-text);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 40px);
    border-radius: 2px;
}


/* --- ปุ่ม (Buttons) --- */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}
.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}


/* --- การ์ด (Cards) --- */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.card .card-title {
    color: var(--primary-color);
    font-weight: 700;
}


/* --- ฟอร์ม (Forms) --- */
.form-label {
    font-weight: 500;
}
.form-control, .form-select {
    border-radius: var(--border-radius);
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* --- Footer --- */
footer {
    background-color: var(--light-gray);
}

/* ======== New Registration Page Styles ======== */
.register-container {
    max-width: 1100px;
    margin: auto;
}

.register-info-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

/* ทำให้ Panel ซ้ายสวยงามในจอเล็ก */
@media (max-width: 991.98px) {
    .register-info-panel {
        border-bottom-left-radius: 0;
        border-top-right-radius: var(--border-radius);
    }
}

.input-group-text {
    background-color: var(--light-gray);
    border-right: none;
    color: var(--primary-color);
}
.input-group .form-control {
    border-left: none;
}

/* Step Indicator Styles */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 80%;
    margin: 0 auto 2rem auto;
}
.steps-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background-color: #fff; /* สีเดียวกับพื้นหลังฟอร์ม */
    padding: 0 10px;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}
.step-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Active Step Style */
.step-item.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: bold;
}
/* ======== แถบประกาศตัววิ่ง ======== */
.announcement-bar {
    background-color: #dc3545; /* สีแดง */
    color: #ffffff; /* สีขาว */
    padding: 0.5rem 0.25rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.announcement-bar marquee {
    display: block;
    vertical-align: middle;
}
.announcement-bar i {
    margin-right: 10px;
}
/* ======== สไตล์สำหรับ PDPA PDF Modal ======== */
.pdpa-iframe {
    width: 100%;
    height: 70vh; /* 70% ของความสูงหน้าจอ (ปรับได้ตามต้องการ) */
    border: none;
    display: block; /* แก้ปัญหาขอบล่าง iframe ที่อาจเกิดขึ้น */
}

/* ทำให้ Checkbox อยู่ในตำแหน่งที่ถูกต้อง */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-footer .form-check {
    margin-right: auto; /* ดันปุ่ม "ยอมรับ" ไปทางขวา */
}