/* Import Nunito Sans font from Google Fonts with various weight and style options */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* Define CSS variables for consistent color scheme throughout the site */
:root {
    --color-yellow: #FFB427;  /* Primary accent color */
    --color-blue: #3975D9;    /* Secondary accent color */
    --color-navy: #0B1F3F;    /* Primary dark color */
    --color-white: #FFFFFF;   /* Primary light color */
}

/* Global styles applied to all elements */
* {
    font-family: "Nunito Sans", sans-serif;  /* Set default font */
    font-optical-sizing: auto;               /* Enable optical sizing */
    font-weight: bold;                       /* Default font weight */
    font-style: normal;                      /* Default font style */
    font-variation-settings:
        "wdth" 100,                          /* Font width setting */
        "YTLC" 500;                          /* Font height setting */
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;                              /* Scrollbar width */
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-navy);     /* Scrollbar thumb color */
    border-radius: 5px;                      /* Rounded corners */
}

/* Body styling with background image and overlay */
body {
    background-image: linear-gradient(rgba(11, 31, 63, 0.85), rgba(11, 31, 63, 0.85)),
        url('../images/background_Image.avif'); /* Semi-transparent overlay over background image */
    background-size: cover;                  /* Cover entire viewport */
    background-position: center;             /* Center the background */
    background-attachment: fixed;            /* Fixed background on scroll */
    color: var(--color-white);               /* Default text color */
}

/* Navigation bar styling */
.navbar {
    background-color: var(--color-navy);     /* Navbar background */
    border-bottom: 3px solid var(--color-yellow); /* Yellow accent border */
}

/* Navbar brand/logo text styling */
.navbar-brand {
    white-space: nowrap;                     /* Prevent text wrapping */
    color: var(--color-yellow) !important;   /* Yellow text color */
    font-size: 1.8rem;                       /* Larger font size */
}

/* Logo image styling */
.logo {
    width: 60px;                            /* Fixed width */
    height: 60px;                           /* Fixed height */
    object-fit: cover;                      /* Maintain aspect ratio */
    border-radius: 12px;                    /* Slightly rounded corners */
}

/* Navigation link styling */
.nav-link {
    color: var(--color-white) !important;    /* White text color */
    margin: 0 10px;                         /* Horizontal spacing */
}

/* Navigation link hover effect */
.nav-link:hover {
    color: var(--color-yellow) !important;   /* Yellow on hover */
}

/* Registration form container styling */
.registration-form {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border: 3px solid var(--color-yellow);      /* Yellow border */
    border-radius: 15px;                        /* Rounded corners */
    padding: 30px;                              /* Inner spacing */
    margin: 50px auto;                          /* Center with top margin */
    color: var(--color-navy);                   /* Dark text color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}

/* Form title styling */
.form-title {
    color: var(--color-navy);                   /* Dark text color */
    text-align: center;                         /* Center alignment */
    margin-bottom: 30px;                        /* Bottom spacing */
    border-bottom: 2px solid var(--color-yellow); /* Underline effect */
    padding-bottom: 10px;                       /* Spacing under text */
}

/* Form input and select field styling */
.form-control,
.form-select {
    border: 1px solid var(--color-navy);        /* Dark border */
    border-radius: 5px;                         /* Slightly rounded */
    padding: 12px;                              /* Comfortable padding */
    margin-bottom: 15px;                        /* Spacing between fields */
}

/* Focus state for form fields */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-yellow);          /* Yellow border when focused */
    box-shadow: 0 0 0 0.25rem rgba(255, 180, 39, 0.25); /* Subtle glow effect */
}

/* Form validation styling */
/* Valid input fields */
input.valid,
textarea.valid {
    border: 2px solid green;                    /* Green border for valid */
    background-color: #e6ffe6;                  /* Light green background */
}

/* Invalid input fields */
input.invalid,
textarea.invalid {
    border: 2px solid red;                      /* Red border for invalid */
    background-color: #ffe6e6;                  /* Light red background */
}

/* Error message styling */
.error {
    color: red;                                 /* Red text for errors */
    font-size: 0.875em;                         /* Smaller font size */
    display: none;                              /* Hidden by default */
}

/* Primary button styling */
.btn-primary {
    background-color: var(--color-yellow);      /* Yellow background */
    border: none;                               /* No border */
    padding: 12px 30px;                         /* Comfortable padding */
    font-weight: bold;                          /* Bold text */
    width: 100%;                                /* Full width */
    margin-top: 10px;                           /* Top spacing */
}

/* Primary button hover state */
.btn-primary:hover {
    background-color: var(--color-navy);        /* Dark background on hover */
}

/* Location button specific styling */
.btn-location {
    background-color: var(--color-yellow);      /* Yellow background */
    color: var(--color-navy);                   /* Dark text */
    border: none;                               /* No border */
    font-weight: bold;                          /* Bold text */
}

/* Location button hover state */
.btn-location:hover {
    background-color: #e6a324;                  /* Slightly darker yellow */
}

/* Profile picture container styling */
.profile-pic-container {
    position: relative;                         /* For absolute positioning children */
    width: 150px;                              /* Fixed size */
    height: 150px;                             /* Fixed size */
    margin: 0 auto 20px;                       /* Centered with bottom margin */
    border-radius: 50%;                        /* Circular shape */
    border: 3px solid var(--color-yellow);     /* Yellow border */
    overflow: hidden;                          /* Hide overflow */
    background-color: #f8f9fa;                 /* Light background */
    display: flex;                             /* Flex layout */
    align-items: center;                       /* Vertical center */
    justify-content: center;                  /* Horizontal center */
    cursor: pointer;                           /* Pointer cursor */
}

/* Profile image styling */
.profile-pic-container img {
    width: 100%;                               /* Full container width */
    height: 100%;                              /* Full container height */
    object-fit: cover;                         /* Maintain aspect ratio */
}

/* Default icon styling in profile container */
.profile-pic-container .icon {
    font-size: 3rem;                           /* Large icon size */
    color: var(--color-navy);                  /* Dark icon color */
}

/* Hidden file input for profile picture */
.profile-pic-container input[type="file"] {
    position: absolute;                        /* Absolute positioning */
    width: 100%;                               /* Full container width */
    height: 100%;                              /* Full container height */
    opacity: 0;                                /* Invisible */
    cursor: pointer;                           /* Pointer cursor */
}

/* Document upload area styling */
.doc-upload {
    border: 2px dashed var(--color-navy);      /* Dashed dark border */
    border-radius: 10px;                       /* Rounded corners */
    padding: 20px;                             /* Inner spacing */
    text-align: center;                        /* Center content */
    margin-bottom: 20px;                       /* Bottom spacing */
    cursor: pointer;                           /* Pointer cursor */
}

/* Document upload hover state */
.doc-upload:hover {
    border-color: var(--color-yellow);         /* Yellow border on hover */
}

/* Document upload icon styling */
.doc-upload i {
    font-size: 2rem;                           /* Large icon size */
    color: var(--color-blue);                  /* Blue icon color */
    margin-bottom: 10px;                       /* Bottom spacing */
}

/* Upload options dropdown (hidden by default) */
.document-upload-card {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.document-upload-card:hover {
    border-color: var(--color-yellow);
    background-color: #f0f7ff;
}

.upload-icon-container {
    margin-right: 20px;
    color: var(--color-yellow);
}

.upload-content {
    flex-grow: 1;
    
}

.upload-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.upload-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

.upload-action {
    margin-left: 15px;
}

.file-name {
    font-style: italic;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer styling */
footer {
    background-color: var(--color-navy);       /* Dark background */
    color: var(--color-white);                 /* White text */
    padding: 30px 0;                          /* Vertical padding */
    border-top: 3px solid var(--color-yellow); /* Yellow top border */
}

/* Footer logo text styling */
.footer-logo {
    font-weight: bold;                         /* Bold text */
    color: var(--color-yellow);                /* Yellow color */
    font-size: 1.5rem;                         /* Larger font size */
}

/* Footer link styling */
footer a {
    text-decoration: none;                     /* No underline */
    color: var(--color-white);                 /* White text */
}

/* Social media icon styling */
.social-icons a {
    color: var(--color-white);                 /* White icons */
    font-size: 1.5rem;                         /* Icon size */
    margin: 0 10px;                            /* Horizontal spacing */
}

/* Social media icon hover state */
.social-icons a:hover {
    color: var(--color-yellow);                /* Yellow on hover */
}

/* Form label styling */
.form-label {
    font-weight: 600;                          /* Semi-bold text */
}

/* Error message styling (duplicate - could be consolidated) */
.error {
    color: #dc3545;                            /* Red text */
    font-size: 0.875rem;                       /* Small font size */
    margin-top: -10px;                         /* Negative top margin */
    margin-bottom: 10px;                       /* Bottom spacing */
    display: none;                             /* Hidden by default */
}

/* Invalid input field styling */
.is-invalid {
    border-color: #dc3545 !important;          /* Red border */
}

/* Location status text styling */
.location-status {
    font-size: 0.9rem;                         /* Small font size */
    color: var(--color-blue);                  /* Blue text */
    margin-top: 5px;                           /* Small top spacing */
}