/* Registration Page Specific Styles */

.form-container {
    max-width: 420px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(to right, #cb0000 0%, #cb0000 80%, #ffffff 80%, #ffffff 85%, #8c52ff 85%, #8c52ff 90%, #ffcc00 90%, #ffcc00 100%);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #cb0000;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    height: 45px;
}

.form-control:focus {
    border-color: #8c52ff !important;
    box-shadow: 0 0 12px rgba(140, 82, 255, 0.5);
    transform: translateY(-2px);
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
}

.select2-container--default .select2-selection--single {
    height: 45px;
    border: 2px solid #cb0000;
    border-radius: 14px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.select2-container--default .select2-selection--single:focus-within {
    border-color: #8c52ff !important;
    box-shadow: 0 0 12px rgba(140, 82, 255, 0.5);
    transform: translateY(-2px);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 28px;
    padding-left: 0;
    font-weight: 600 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 41px;
    right: 10px;
}

.select2-dropdown {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0;
}

.checkbox-group label a {
    color: #8c52ff;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #cb0000 0%, #cb0000 80%, #ffffff 80%, #ffffff 85%, #8c52ff 85%, #8c52ff 90%, #ffcc00 90%, #ffcc00 100%);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 16px 0;
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 7px 22px rgba(140, 82, 255, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a00000 0%, #a00000 80%, #f0f0f0 80%, #f0f0f0 85%, #6a3fd5 85%, #6a3fd5 90%, #e6b800 90%, #e6b800 100%);
    box-shadow: 0 12px 30px rgba(140, 82, 255, 0.7);
    color: #000;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    color: #666;
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 30px 30px 0;
}

.modal-title {
    color: #cb0000;
    font-weight: 700;
    font-size: 24px;
}

.modal-body {
    padding: 20px 30px;
}

.modal-footer {
    border-top: none;
    padding: 0 30px 30px;
}

.terms-section {
    margin-bottom: 20px;
}

.terms-title {
    font-weight: 700;
    color: #cb0000;
    margin-bottom: 15px;
    font-size: 18px;
}

.terms-content {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9fa;
    font-size: 14px;
    line-height: 1.6;
}

.terms-content h3 {
    color: #cb0000;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content p {
    margin-bottom: 10px;
}

.terms-content ul {
    margin-bottom: 10px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 5px;
}

.btn-confirm {
    background: linear-gradient(135deg, #cb0000 0%, #cb0000 80%, #ffffff 80%, #ffffff 85%, #8c52ff 85%, #8c52ff 90%, #ffcc00 90%, #ffcc00 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
    box-shadow: 0 7px 22px rgba(140, 82, 255, 0.5);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #a00000 0%, #a00000 80%, #f0f0f0 80%, #f0f0f0 85%, #6a3fd5 85%, #6a3fd5 90%, #e6b800 90%, #e6b800 100%);
    box-shadow: 0 12px 30px rgba(140, 82, 255, 0.7);
}

.btn-confirm:active {
    transform: translateY(1px);
}

.btn-confirm:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    color: #666;
}

.btn-cancel {
    background: #6c757d;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    color: #fff;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

/* Datepicker custom styles */
.datepicker table tr td.today {
    background-color: #cb0000 !important;
    color: #fff !important;
}

.datepicker table tr td.today:hover {
    background-color: #a00000 !important;
    color: #fff !important;
}

.datepicker table tr td.day:hover {
    background-color: #cb0000 !important;
    color: #fff !important;
}

.datepicker table tr td.day.focused {
    background-color: #cb0000 !important;
    color: #fff !important;
}

.datepicker table tr td.selected {
    background-color: #cb0000 !important;
    color: #fff !important;
}

.datepicker table tr td.active {
    background-color: #cb0000 !important;
    color: #fff !important;
}

/* SweetAlert2 custom styles */
.swal2-popup .swal2-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.swal2-popup .swal2-confirm {
    background: linear-gradient(135deg, #cb0000 0%, #cb0000 80%, #ffffff 80%, #ffffff 85%, #8c52ff 85%, #8c52ff 90%, #ffcc00 90%, #ffcc00 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 7px 22px rgba(140, 82, 255, 0.5) !important;
    font-size: 16px !important;
}

.swal2-popup .swal2-confirm:hover {
    background: linear-gradient(135deg, #a00000 0%, #a00000 80%, #f0f0f0 80%, #f0f0f0 85%, #6a3fd5 85%, #6a3fd5 90%, #e6b800 90%, #e6b800 100%) !important;
    box-shadow: 0 12px 30px rgba(140, 82, 255, 0.7) !important;
    color: #000 !important;
}

.swal2-popup .swal2-confirm:active {
    transform: translateY(1px) !important;
}

.swal2-popup .swal2-cancel {
    background: #6c757d !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    color: #fff !important;
    transition: background-color 0.3s ease !important;
    font-size: 16px !important;
}

.swal2-popup .swal2-cancel:hover {
    background: #5a6268 !important;
    color: #fff !important;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.loading-spinner {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cb0000;
}

.loading-content h4 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.loading-content p {
    font-size: 16px;
    margin: 0;
}

/* Media queries for mobile responsiveness */
@media (max-width: 767px) {
    .form-container {
        max-width: 95%;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .terms-content {
        max-height: 200px;
    }

    .btn-submit {
        padding: 14px 0;
        font-size: 16px;
    }

    .loading-content h4 {
        font-size: 20px;
    }

    .loading-content p {
        font-size: 14px;
    }
}

/* Custom checkbox styles for terms and conditions */
.form-check-input {
    border: 2px solid #cb0000 !important;
    border-radius: 4px !important;
    width: 18px !important;
    height: 18px !important;
    background-color: #fff !important;
    transition: all 0.3s ease !important;
}

.form-check-input:focus {
    border-color: #8c52ff !important;
    box-shadow: 0 0 8px rgba(140, 82, 255, 0.5) !important;
}

.form-check-input:checked {
    background-color: #cb0000 !important;
    border-color: #cb0000 !important;
}

.form-check-input:hover {
    border-color: #8c52ff !important;
}
