﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
}
.required::after {
    content: " *";
    color: red;
}

.alert-box {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-box.show {
    display: block;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

.alert-box strong {
    display: block;
    margin-bottom: 4px;
}

.id-validation-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

    .id-validation-message.text-danger {
        color: #dc3545;
    }

    .id-validation-message.text-success {
        color: #28a745;
    }

.passport-validation-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

    .passport-validation-message.text-danger {
        color: #dc3545;
    }

    .passport-validation-message.text-success {
        color: #28a745;
    }
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

.register-box {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

    .register-box img {
        max-height: 110px;
        margin-bottom: 1rem;
    }

    .register-box h2 {
        color: #336633;
        margin-bottom: 2rem;
        font-size: 2rem;
    }

.form-label {
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
}

.form-select,
.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

    .form-row > div {
        flex: 1;
    }

/* Patient Type row */
.patient-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .patient-type-row .form-label {
        margin-bottom: 0;
        width: 35%;
        color: #444;
    }

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 65%;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    cursor: pointer;
    color: #444;
}

    /* Radio button styling */
    .radio-item input[type="radio"] {
        accent-color: #336633;
        cursor: pointer;
    }

        /* Make label text green when selected */
        .radio-item input[type="radio"]:checked + span {
            color: #336633;
            font-weight: 600;
        }

.btn-submit {
    background-color: #c44000;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-submit:hover {
        background-color: #a23200;
    }
.patient-choice {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-option {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

    .btn-option:hover {
        background-color: #0056b3;
    }

.form-actions {
    position: relative;
    margin-top: 20px;
}

.back-link {
    display: block;
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #007bff;
    text-decoration: none;
    display: none;
}

    .back-link:hover {
        text-decoration: underline;
    }
/* Responsive adjustments */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }

    .patient-type-row {
        flex-direction: column;
        align-items: flex-start;
    }

        .patient-type-row .form-label {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .radio-group {
        width: 100%;
        justify-content: flex-start;
    }
}
