/* General Styling for Form */
.register-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.register-container .register-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow to create the elevated effect */
    padding: 30px;
    margin: 20px;
}

/* Title */
.title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Form Fields */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}

/* Styling for grouping Username, Password and Confirm Password */
.input-group {
    display: flex;
    gap: 10px; /* Space between input fields */
}

.input-group .form-control {
    flex: 1; /* Allow each input to take equal space */
}

/* Date of Birth Select Styling */
.dob-select {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.dob-select select {
    flex: 1; /* Allow each select box to take equal space */
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between buttons */
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    border-radius: 15px;
    transition: all 0.2s ease-in-out;
    
}

.btn-primary {
    background-color: #2b2b2b;
    color: #ffffff; /* เปลี่ยนข้อความเป็นสีดำเพื่อให้อ่านง่าย */
}

.btn-primary:hover {
    background-color: white; /* เปลี่ยนสีพื้นหลังเป็นสีขาว */
    color: #2b2b2b; /* เปลี่ยนข้อความเป็นสีดำเพื่อให้อ่านง่าย */
    border: 2px solid #2b2b2b; /* เพิ่มขอบสีเทา */
}

/* Submit Button */
.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

/* Back Button */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    width: auto;
    margin-top: 20px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Hidden Sections */
.step {
    display: none;
}

/* Account Link */
.account-link {
    text-align: center;
    margin-top: 20px;
}

.account-link a {
    color: #007bff;
}

.account-link a:hover {
    text-decoration: underline;
}

/* Styling for back button */
.prev-button {
    width: 120px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #6c757d57;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.prev-button:hover {
    background-color: #5a6268; /* สีพื้นหลังเมื่อ hover */
    transform: scale(1.05); /* เพิ่มขนาดเล็กน้อย */
    cursor: pointer; /* เปลี่ยนเคอร์เซอร์เป็น pointer */
}

.prev-button:focus {
    outline: none; /* ลบกรอบโฟกัสเริ่มต้น */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* เงาเน้นเมื่อโฟกัส */
}
/* Styling for the Step Indicators */
.step-indicator-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.step-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease; /* เพิ่ม transition เพื่อความนุ่มนวล */
}

.step-indicator.active {
    background-color: rgb(212, 1, 50); /* สีที่ใช้เมื่ออยู่ในขั้นตอนปัจจุบัน */
    animation: bounce 0.6s ease-out forwards; /* เพิ่ม forwards เพื่อให้คงขยายจนถึงจบอนิเมชัน */
}

/* อนิเมชันการพองตัว */
@keyframes bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5); /* ขยายขึ้น 1.5 เท่า */
    }
    100% {
        transform: scale(1); /* กลับสู่ขนาดเดิม */
    }
}

/* การใช้ animation-delay สำหรับแต่ละวงกลม */
.step-indicator:nth-child(1).active {
    animation-delay: 0s; /* วงแรกขยายทันที */
}

.step-indicator:nth-child(2).active {
    animation-delay: 0.3s; /* วงที่สองขยายหลังจาก 0.3 วินาที */
}

.step-indicator:nth-child(3).active {
    animation-delay: 0.6s; /* วงที่สามขยายหลังจาก 0.6 วินาที */
}

.step-indicator:nth-child(4).active {
    animation-delay: 0.9s; /* วงที่สี่ขยายหลังจาก 0.9 วินาที */
}

.is-invalid {
    border-color: red;
}

.is-invalid:focus {
    box-shadow: 0 0 5px red;
}
.button-team{
    display: flex;
    justify-content: space-between;
}

.skip-button {
    width: 120px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0574d657;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.skip-button:hover {
    background-color: #0461a1; /* เปลี่ยนสีพื้นหลังเมื่อ hover */
    transform: scale(1.05); /* เพิ่มขนาดเล็กน้อย */
    cursor: pointer; /* เปลี่ยนเคอร์เซอร์เป็น pointer */
}

.skip-button:focus {
    outline: none; /* ลบกรอบโฟกัสเริ่มต้น */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* เงาเน้นเมื่อโฟกัส */
}


.input-group-text {
    cursor: pointer;
}

/* Styles for the alert boxes */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

/* Success message */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Danger or error message */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Warning message */
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Info message */
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* For positioning the alert */
.alert-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 500px;
}

/* For hiding the alert */
.alert.hidden {
    display: none;
}

.bottom-button-group{
    display: flex;
    margin-top: 15px;
    justify-content: space-between
}

