﻿/* Custom styles for a sleek, modern UI */

/* General body styling */
body {
    background-color: #f5f5f5;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

    /* Dark Mode General body styling */
    body.dark-mode {
        background-color: #121212;
        color: #ffffff;
    }

/* Card styling for the form */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0; /* Added margin for better spacing on mobile */
}

/* Dark Mode Card styling for the form */
body.dark-mode .card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Rounded elements for a modern look */
.form-control, .btn {
    border-radius: 15px;
}

/* Input group text background and border */
.input-group-text {
    background-color: #ffffff;
    border-right: none;
}

/* Dark Mode Input group text background and border */
body.dark-mode .input-group-text {
    background-color: #2b2b2b;
}

/* Remove left border from form control when used with input group */
.form-control {
    border-left: none;
}

/* Primary button styling */
.btn-primary {
    background-color: #4fb3bf;
    /*background-color: #245B9C;*/ /*fjb*/
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .btn-primary:disabled {
        background-color: #4fb3bf;
        /*background-color: #245B9C;*/ /*fjb*/
    }

    /* Keep the outline but match it to the button color */
    .btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible {
        box-shadow: 0 0 0 0.25rem rgba(79, 179, 191, 0.6);
        background-color: #4fb3bf;
        /*background-color: #245B9C;*/ /*fjb*/
    }

/* Dark Mode Primary button styling */
body.dark-mode .btn-primary {
    background-color: #3aafbf;
    /*background-color: #245B9C;*/ /*fjb*/
}

/* Primary button hover effect */
.btn-primary:hover {
    background-color: #74c3cd;
    /*background-color: #004990;*/ /*fjb*/
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

/* Secondary button styling */
.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Secondary button styling */
body.dark-mode .btn-secondary {
    background-color: #5a6268;
}

/* Secondary button hover effect */
.btn-secondary:hover {
    background-color: #868e96;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

/* Icon color inside input group */
.input-group-prepend .input-group-text i {
    color: #4fb3bf;
}

/* Dark Mode Icon color inside input group */
body.dark-mode .input-group-prepend .input-group-text i {
    color: #3aafbf;
}

/* Custom invalid feedback styling */
.invalid-feedback {
    display: block;
    font-size: 0.875em;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Dark Mode Custom invalid feedback styling */
body.dark-mode .invalid-feedback {
    color: #ff6b6b;
}

/* Responsive spacing for the form */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

/* Custom styles for the countdown text */
#countdown {
    font-size: 1em;
    color: #dc3545;
    margin-top: 10px;
}

/* Dark Mode Custom styles for the countdown text */
body.dark-mode #countdown {
    color: #ff6b6b;
}

/* Align buttons to the right */
.form-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 30px; /* Added margin below the buttons */
}

/* Add margin to the back button */
#backButton {
    margin-right: auto;
}

/* Floating animation for the form */
.animate__animated.animate__fadeInUp {
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

@media (max-width: 576px) {
    /* Ensuring the form is full width on mobile */
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-bottom: 20px; /* Adjusted margin for mobile */
    }

    .btn {
        width: 100%;
    }

    .card {
        margin: 10px 0; /* Adjusted margin for mobile */
    }
}

