/* ===== Reset ===== */
* {
    box-sizing: border-box;
}
.show { display: inline-block !important; }
.hide { display: none !important; }

/* ===== Base body styling ===== */
body {
    font-family: Arial, sans-serif;
    color: white;
    margin: 0;
    min-height: 100vh;
    background-image: url("/assets/AI_Image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Header ===== */
header {
    background: black;
    padding: 15px;
    text-align: center;
}

header .logo-container img,
.header-inner img {
    max-width: 180px;
    max-height: 100%;
    width: 100%;
    height: auto;
}

.header-inner {
    max-width: 250px;
    height: 100px;
    margin: auto;
    padding: 30px;
}

/* ===== Containers ===== */
.main-container,
.assessment-container {
    margin: 30px auto;
    padding: 25px;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
}

.main-container {
    max-width: 420px;
    width: 90%;
}

.assessment-container {
    max-width: 50%;
}

/* ===== Typography ===== */
h1 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    font-size: 14px;
}

/* ===== Form elements ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background-color: rgba(192,192,192,0.3);
    color: white;
}

/* ===== Buttons ===== */
button,
.certificate-btn,
.portal-btn {
    display: inline-block;
    margin: 10px 10px 10px 0;
    padding: 18px 24px;
    font-size: 20px;
    background: #e0e0e0;
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

button:hover,
.certificate-btn:hover,
.portal-btn:hover {
    background: #cfcfcf;
    transform: scale(1.02);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Certificate & portal buttons */
.certificate-btn {
    background-color: #28a745; /* green */
    color: #fff;
}
.portal-btn {
    background-color: #6c757d; /* grey */
    color: #fff;
}

/* ===== Messages ===== */
.message {
    text-align: center;
    margin-bottom: 15px;
    background: rgba(192,192,192,0.3);
    padding: 10px;
    border-left: 4px solid #888;
}

.message.error {
    color: #ff6666;
}

.message.success {
    color: black;
}

/* ===== Links ===== */
.register-link,
.login-link {
    margin-top: 15px;
    text-align: center;
}

.register-link a,
.login-link a {
    color: #fff;
    text-decoration: underline;
}

/* ===== Password toggle ===== */
.password-toggle {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    display: inline-block;
    color: #ccc;
}

/* ===== Video/dashboard styling ===== */
.video {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(192,192,192,0.3);
}

.container {
    max-width: 75%;
    margin: auto;
}

a {
    color: black;
    text-decoration: none;
}

/* ===== Question & Choices ===== */
.question {
    margin-bottom: 20px;
}

/* Locked / disabled inputs */
input[type=radio]:disabled + label,
input[type=checkbox]:disabled + label {
    color: #999;          /* greyed out text */
    cursor: not-allowed;  /* show not-allowed cursor */
}

input[type=radio]:disabled,
input[type=checkbox]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.choices {
    margin-left: 20px;
}

/* Optional: dim entire question when locked */
.question.locked {
    opacity: 0.6;
    pointer-events: none; /* prevents clicks */
}

/* ===== Utility ===== */
.hidden {
    display: none;
}

/* ===== Mobile adjustments ===== */
@media (max-width: 900px) {
    .container { max-width: 90%; }
    .assessment-container { max-width: 90%; }
}

@media (max-width: 480px) {
    .main-container,
    .assessment-container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 16px;
        font-size: 18px;
    }

    button,
    .certificate-btn,
    .portal-btn {
        padding: 16px;
        font-size: 18px;
    }

    .password-toggle {
        font-size: 14px;
    }
}
