/* Custom styles for TOIPA Enrollment Page */

/* Hamburger menu animation */
#mobileMenuToggle.active span:nth-child(1) {
    position: absolute;
    transform: rotate(45deg);
}

#mobileMenuToggle.active span:nth-child(2) {
    opacity: 0;
}

#mobileMenuToggle.active span:nth-child(3) {
    position: absolute;
    transform: rotate(-45deg);
}

/* Mobile navigation - below lg breakpoint (1024px) */
@media (max-width: 1023px) {
    #mainNav {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        background-color: #333333;
        flex-direction: column;
        gap: 11.5px;
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        overflow-y: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #mainNav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    #mainNav a {
        width: 100%;
        text-align: center;
        text-decoration: none;
        padding: 10px 0;
        font-size: 20px;
        line-height: 100%;
        font-weight: 600;
    }

    #mainNav a:hover {
        text-decoration: underline;
    }

    #mainNav button {
        width: 100%;
        margin-top: 48px;
    }
}

/* Placeholder color for form inputs */
input::placeholder,
textarea::placeholder {
    color: #33333399;
    opacity: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
}

/* Course type card selected effect */
.course-type-card {
    transition: all 0.3s ease;
}

.course-type-card.selected {
    border-color: #F0A763;
    box-shadow: 0 8px 16px rgba(240, 167, 99, 0.3);
}

/* Step content visibility */
.step-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress indicator active state */
.step-indicator-active {
    background-color: #F0A763 !important;
    color: white !important;
}

.step-label-active {
    color: #F0A763 !important;
}

/* Custom select dropdown arrow */
select {
    cursor: pointer;
}

/* File upload area hover effect */
.border-dashed:hover {
    border-color: #F0A763;
    background-color: rgba(240, 167, 99, 0.05);
}

/* Form validation error state */
input.error,
textarea.error,
select.error {
    border-color: #EF4444 !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #F0A763;
    box-shadow: 0 0 0 3px rgba(240, 167, 99, 0.1);
}

/* Radio button custom styling */
input[type="radio"] {
    accent-color: #F0A763;
    cursor: pointer;
}

/* File input label hover */
label[for="idUpload"]:hover,
label[for="concessionUpload"]:hover {
    border-color: #F0A763 !important;
    color: #F0A763 !important;
}

/* Responsive progress indicator for mobile */
@media (max-width: 1023px) {
    .step-indicator-active {
        font-size: 14px;
    }

    .step-label-active {
        font-size: 14px;
    }
}

/* Button disabled state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success message */
.success-message {
    background-color: #9FBBA1;
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Error message */
.error-message {
    color: #EF4444;
    font-size: 14px;
    margin-top: 4px;
}
