/* Global font size adjustments */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Focused button styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Prevent selection flicker when buttons or inputs are clicked */
* {
    user-select: none;
}

/* OTP Inputs */
.otp-inputs input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 10px; /* Horizontal space between squares */
    transition: border-color 0.2s;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Space below the OTP squares */
}


/* Button styling */
.btn-primary {
    display: block;
    margin: 20px auto; /* Space between squares and button */
    padding: 10px 20px;
    background-color: #7F072D;
    border-color: #7F072D;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
}

.btn:hover {
    background: #0056b3;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(90deg, #6f42c1, #9b59b6);
    color: white;
    border-bottom: none;
    padding: 2rem 1.5rem;
}

.card-header h3 {
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-floating > label {
    color: #6c757d;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #ced4da;
    box-shadow: none;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #6f42c1;
        box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
    }

.btn-primary,
.btn-success {
    border-radius: 8px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

    .btn-success:hover {
        background-color: #218838;
    }

.btn-secondary {
    background-color: #6c757d;
    border: none;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }

.alert {
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
}

.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

.form-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* OTP Verification Wrapper for Flexbox */
.otp-verification-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.form-check-label {
    color: #693a95;
    font-weight:bold;
}
/* Frame for OTP Form */
.otp-frame {
    background: #fff;
    padding: 20px;
    border: 2px solid #7F072D;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    margin: 0 auto;
}

/* Resend link styling */
.resend {
    margin-top: 10px;
    text-align: center;
}

    .resend a {
        color: #7F072D;
        text-decoration: none;
    }

        .resend a:hover {
            text-decoration: underline;
        }

/* Outer frame for OTP Verification */
.otp-verification-frame {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Image Section Styling */
.image-section {
    max-width: 500px;
    padding-left: 20px;
}

    .image-section img {
        width: 100%;
        height: auto;
    }

/* Thank You Section Styling */
.thank-you-section {
    text-align: center;
    padding: 50px 20px;
}

.thank-you-icon {
    font-size: 80px;
    color: #7F072D;
    margin-bottom: 20px;
}

/* Featured Courses Section Styling */
.featured-courses {
    padding: 50px 20px;
}

.course-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

    .course-card:hover {
        transform: scale(1.05);
    }

    .course-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .course-card .card-body {
        padding: 15px;
    }



.btn-circle {
    display: inline-block;
    width: auto; /* Adjust width to fit text */
    height: auto; /* Adjust height to fit text */
    line-height: normal; /* Reset line-height */
    text-align: center;
    border-radius: 20px; /* Optional, can be removed */
    background-color: transparent; /* Remove background color */
    color: inherit; /* Use default text color */
    cursor: pointer;
    border: none; /* Remove border */
    padding: 0; /* Remove extra padding */
}

.form-check-input:checked + .form-check-label .btn-circle {
    font-weight: bold; /* Highlight the text on selection */
}




/* Footer Styling */
.custom-footer {
    padding: 5px 0; /* Adjust padding as needed */
    background-color: #16164d;
    color: white;
}

/* Additional Global Styles */
a {
    text-decoration: none;
    color: inherit;
}

    a:hover {
        text-decoration: underline;
    }

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #258cfb;
    border-color: #258cfb;
}

    .btn-primary:hover {
        background-color: #1b6fd8;
        border-color: #1b6fd8;
    }


#download-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
}

    #download-btn:hover {
        background-color: #218838;
    }

    #download-btn .fa-download {
        margin-right: 8px;
    }
