﻿* {
    box-sizing: border-box;
}
.error-message {
    color: red;
    font-size: 13px;
    text-align: center;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* canh giữa nội dung */
    gap: 0px; /* khoảng cách giữa các dòng */
    margin-bottom: 20px;
}

.form-control {
    width: 100%; /* full width in responsive layouts */
    padding: 8px;
    font-size: 14px;
}
body {
    margin: 0;
    padding: 0;
    font-family: Tahoma;
    --font-family-sans-serif: tahoma;
    --font-family-monospace: tahoma;
    height: 100vh;
    width: 100%;
    background: url("/images/background.jpg");
    -webkit-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.colorRed {color: red;font-weight: bold;}
.wrapper {
    width: 100%;
    max-width: 420px;
    height: auto;
    color: black;
    padding: 50px 30px;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2);
    position: relative;
    background: #ffffff1a;
    border: 2px solid #ffffff30;
    box-shadow: 0 0 30px #0000002a;
    border-radius: 25px;
}

    .wrapper h2 {
        text-align: center;
        margin: 0;
        margin-bottom: 30px;
    }

    .wrapper p {
        margin: 0;
        padding: 0;
        font-weight: 500;
        text-align: center;
    }
.wrapper2 {
    width: 100%;
    max-width: 640px;
    height: auto;
    color: black;
    padding: 50px 30px;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2);
    position: relative;
    background: #ffffff1a;
    border: 2px solid #ffffff30;
    box-shadow: 0 0 30px #0000002a;
    border-radius: 25px;
}

    .wrapper2 h2 {
        text-align: center;
        margin: 0;
        margin-bottom: 30px;
    }

    .wrapper2 p {
        margin: 0;
        padding: 0;
        font-weight: 500;
        text-align: center;
    }
.wrapper3 {
    width: 100%;
    max-width: 840px;
    height: auto;
    color: black;
    padding: 50px 30px;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2);
    position: relative;
    background: #ffffff1a;
    border: 2px solid #ffffff30;
    box-shadow: 0 0 30px #0000002a;
    border-radius: 25px;
}

    .wrapper3 h2 {
        text-align: center;
        margin: 0;
        font-size: 36px;
        margin-bottom: 30px;
    }

    .wrapper3 p {
        margin: 0;
        padding: 0;
        font-weight: 500;
        text-align: center;
    }
.form-area {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.box {
    position: relative;
}

    .box input {
        padding-right: 30px;
    }

    .box i {
        position: absolute;
        top: 34%;
        transform: translateY(-50%);
        right: 30px;
        color: #fff;
    }
.wrapper3 input, button {
    border: none;
    border: 1px solid #bababa;
    background: transparent;
    outline: none;
    height: 50px;
    color: black;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 50px;
}

.wrapper input, button {
    border: none;
    border: 1px solid #bababa;
    background: transparent;
    outline: none;
    height: 50px;
    color: black;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 50px;
}
.btnBold {font-weight: bold;}
.wrapper .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .wrapper .options label {
        color: #fff;
        font-size: 18px;
        line-height: 3.5;
    }

.options input[type="checkbox"] {
    width: 15px;
    height: auto;
}

.wrapper a {
    text-decoration: none;
    color: #fff;
}

.wrapper .button {
    display: block;
    width: 100%;
    height: 50px;
    padding: 15px;
    background: #fff;
    color: #262626;
    font-size: 16px;
    border: 1px solid #bababa;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

    .wrapper .button:hover {
        background: #eee;
        color: #000;
    }
.wrapper3 .button {
    display: block;
    width: 100%;
    height: 50px;
    padding: 15px;
    background: #fff;
    color: #262626;
    font-size: 16px;
    border: 1px solid #bababa;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 35px;
}

    .wrapper3 .button:hover {
        background: #eee;
        color: #000;
    }
.radio-container {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

    .radio-container input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 50%;
}

/* Khi hover */
.radio-container:hover input ~ .radio-checkmark {
    background-color: #ccc;
}

/* Khi được chọn */
.radio-container input:checked ~ .radio-checkmark {
    background-color: #2196F3;
}

/* Dấu tick (chấm trắng) */
.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Hiện dấu tick khi chọn */
.radio-container input:checked ~ .radio-checkmark:after {
    display: block;
}
.logo {
    display: block;
    margin: 0 auto;
    max-width: 150px; /* hoặc kích thước mong muốn */
    margin-bottom: 20px; /* khoảng cách với form */
}

.agree-container {
    margin-bottom: 20px;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.agree-text {
    font-size: 14px;
}
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

    .lang-btn:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

    .lang-btn img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        background-position: center top;
    }

    .wrapper,
    .wrapper2,
    .wrapper3 {
        padding: 24px 16px;
        border-radius: 16px;
        box-shadow: 0 4px 16px #0000001a;
    }

    .wrapper h2,
    .wrapper2 h2,
    .wrapper3 h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .wrapper input,
    .wrapper3 input,
    .wrapper .button,
    .wrapper3 .button,
    .form-control,
    .box input {
        height: 44px;
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 40px;
    }

    .box i {
        right: 18px;
        top: 36%;
    }

    .logo {
        max-width: 120px;
        margin-bottom: 12px;
    }

    .language-switcher {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .lang-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .lang-btn img {
        width: 16px;
        height: 16px;
    }

    .agree-text {
        font-size: 13px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .wrapper,
    .wrapper2,
    .wrapper3 {
        padding: 32px 20px;
    }

    .wrapper h2,
    .wrapper2 h2,
    .wrapper3 h2 {
        font-size: 22px;
    }

    .logo { max-width: 130px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .wrapper { max-width: 520px; }
    .wrapper2 { max-width: 760px; }
    .wrapper3 { max-width: 960px; }
}

@media (min-width: 1200px) {
    .wrapper { max-width: 560px; }
    .wrapper2 { max-width: 820px; }
    .wrapper3 { max-width: 1040px; }
}