/* ===================================
   Enhanced Form Styles - MicroSmart
   =================================== */

/* Form Title & Subtitle */
.form-title {
    text-align: center;
    color: #09189e;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: "micro-bold", sans-serif;
}

.form-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-family: "micro-regular", sans-serif;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #09189e;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 3px solid #cab04d;
    font-family: "micro-bold", sans-serif;
}

.section-title i {
    font-size: 2rem;
    color: #cab04d;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-family: "micro-regular", sans-serif;
}

.form-label i {
    margin-left: 8px;
    color: #09189e;
}

.required {
    color: #dc3545;
    font-weight: bold;
    margin-right: 4px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    font-family: "micro-regular", sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #09189e;
    box-shadow: 0 0 0 3px rgba(9, 24, 158, 0.1);
    background-color: #f8f9ff;
}

.form-control::placeholder {
    color: #999;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2309189e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 45px;
}

/* Courses Container */
.courses-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e5f6ff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.courses-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #09189e;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: "micro-bold", sans-serif;
}

.courses-title i {
    color: #cab04d;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.course-item:hover {
    border-color: #09189e;
    box-shadow: 0 4px 12px rgba(9, 24, 158, 0.1);
    transform: translateY(-2px);
}

.course-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.course-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #09189e;
}

.course-name {
    font-size: 1.05rem;
    color: #333;
    margin: 0;
    cursor: pointer;
    font-family: "micro-regular", sans-serif;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #cab04d 0%, #d4bb66 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: "micro-regular", sans-serif;
}

.download-btn:hover {
    background: linear-gradient(135deg, #b89935 0%, #cab04d 100%);
    transform: scale(1.05);
    color: #fff;
}

.download-btn i {
    font-size: 1.1rem;
}

/* Confirmation Box */
.confirmation-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #e5f6ff 100%);
    border: 2px solid #09189e;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.agreement-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.agreement-checkbox {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #09189e;
}

.agreement-label {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    cursor: pointer;
    font-family: "micro-regular", sans-serif;
}

.policy-link {
    color: #09189e;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.policy-link:hover {
    color: #cab04d;
    text-decoration: underline;
}

.policy-link i {
    margin-left: 5px;
}

.info-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #cab04d;
}

.info-note i {
    font-size: 1.5rem;
    color: #09189e;
}

.info-note p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    font-family: "micro-regular", sans-serif;
}

/* Navigation Buttons */
.form-navigation {
    margin-top: 40px;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "micro-bold", sans-serif;
}

.btn-prev {
    background: #e0e0e0;
    color: #333;
}

.btn-prev:hover {
    background: #d0d0d0;
    transform: translateX(5px);
}

.btn-next {
    background: linear-gradient(135deg, #09189e 0%, #1a2bb8 100%);
    color: #fff;
}

.btn-next:hover {
    background: linear-gradient(135deg, #1a2bb8 0%, #2a3bc8 100%);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(9, 24, 158, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #cab04d 0%, #d4bb66 100%);
    color: #fff;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #b89935 0%, #cab04d 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(202, 176, 77, 0.4);
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    padding: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #09189e 0%, #1a2bb8 100%);
    box-shadow: 0 4px 15px rgba(9, 24, 158, 0.3);
}

.step.finish {
    background: linear-gradient(135deg, #cab04d 0%, #d4bb66 100%);
    box-shadow: 0 4px 15px rgba(202, 176, 77, 0.3);
}

.step-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    text-align: center;
    font-family: "micro-regular", sans-serif;
}

.step.active + .step-label,
.step.finish + .step-label {
    color: #09189e;
    font-weight: bold;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 6px;
    font-family: "micro-regular", sans-serif;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
    .form-content {
        padding: 30px 25px;
    }

    .form-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .form-title {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }

    .form-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        gap: 10px;
        margin-bottom: 1.5rem;
        padding-bottom: 12px;
    }

    .section-title i {
        font-size: 1.6rem;
    }

    .form-content {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 1.6rem;
    }

    .form-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .form-control {
        padding: 11px 16px;
        font-size: 0.95rem;
    }

    select.form-control {
        padding-left: 40px;
        background-position: left 12px center;
    }

    .phone-prefix {
        width: 88px;
        padding: 11px 32px 11px 10px;
        font-size: 0.95rem;
        background-size: 16px;
        background-position: left 7px center;
    }

    .phone-input {
        padding: 11px 16px;
        font-size: 0.95rem;
    }

    .btn-submit-single {
        width: 100% !important;
        padding: 16px 35px !important;
        font-size: 1.15rem !important;
        border-radius: 12px !important;
        gap: 10px !important;
    }

    .course-item {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 18px;
    }

    .course-info {
        width: 100%;
        gap: 15px;
    }

    .course-checkbox {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .course-name {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    .confirmation-box {
        padding: 18px;
    }

    .agreement-box {
        gap: 12px;
    }

    .agreement-checkbox {
        width: 22px;
        height: 22px;
    }

    .agreement-label {
        font-size: 1rem;
        line-height: 1.7;
    }

    .form-text {
        font-size: 0.88rem;
    }

    .courses-container {
        padding: 20px;
    }

    .courses-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .form-title {
        font-size: 1.6rem;
    }

    .form-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.3rem;
        gap: 8px;
    }

    .section-title i {
        font-size: 1.4rem;
    }

    .form-content {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .form-group {
        margin-bottom: 1.4rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    select.form-control {
        padding-left: 38px;
    }

    .phone-prefix {
        width: 82px;
        padding: 10px 30px 10px 8px;
        font-size: 0.9rem;
        background-size: 14px;
        background-position: left 6px center;
    }

    .phone-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .btn-submit-single {
        padding: 15px 30px !important;
        font-size: 1.08rem !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    .course-item {
        padding: 16px;
        gap: 14px;
        border-radius: 10px;
    }

    .course-info {
        gap: 12px;
    }

    .course-checkbox {
        width: 24px;
        height: 24px;
    }

    .course-name {
        font-size: 1rem;
        line-height: 1.6;
    }

    .download-btn {
        padding: 11px 20px;
        font-size: 0.92rem;
        gap: 8px;
        border-radius: 8px;
    }

    .confirmation-box {
        padding: 15px;
    }

    .agreement-label {
        font-size: 0.95rem;
    }

    .form-text {
        font-size: 0.85rem;
    }

    .courses-container {
        padding: 18px;
    }

    .courses-title {
        font-size: 1.2rem;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .form-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .form-content {
        padding: 15px 12px;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-control {
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .phone-prefix {
        width: 78px;
        padding: 9px 28px 9px 7px;
        font-size: 0.85rem;
        background-size: 13px;
        background-position: left 5px center;
    }

    .phone-input {
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .btn-submit-single {
        padding: 14px 25px !important;
        font-size: 1.02rem !important;
        border-radius: 10px !important;
    }

    .course-item {
        padding: 14px;
        gap: 12px;
    }

    .course-checkbox {
        width: 22px;
        height: 22px;
    }

    .course-name {
        font-size: 0.95rem;
    }

    .download-btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}

/* Single Page Form Container */
.form-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-content .section-title {
    margin-top: 50px;
}

.form-content .section-title:first-child {
    margin-top: 0;
}

/* Submit Button Wrapper */
.form-submit-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

@media (max-width: 768px) {
    .form-submit-wrapper {
        padding: 25px 0;
    }
}

@media (max-width: 576px) {
    .form-submit-wrapper {
        padding: 20px 0;
    }
}

.btn-submit-single {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #cab04d 0%, #d4bb66 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "micro-bold", sans-serif;
    box-shadow: 0 8px 25px rgba(202, 176, 77, 0.3);
}

.btn-submit-single:hover {
    background: linear-gradient(135deg, #b89935 0%, #cab04d 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(202, 176, 77, 0.4);
}

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

.btn-submit-single i {
    font-size: 1.4rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-content {
    animation: fadeIn 0.5s ease;
}

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

/* Focus Styles for Accessibility */
input:focus,
select:focus,
button:focus,
a:focus {
    outline: 2px solid #09189e;
    outline-offset: 2px;
}

/* Phone Input Group Styles */
.phone-input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95px;
    padding: 12px 35px 12px 10px;
    border: 2px solid #09189e;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #09189e;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    font-family: "micro-bold", sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    /* Dropdown arrow styling - more visible */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18 9 12 15 6 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.phone-prefix:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: -2px;
}

.phone-prefix option {
    background: white;
    color: #09189e;
    font-weight: bold;
}

.phone-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-left: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    font-family: "micro-regular", sans-serif;
    background-color: #fff;
    min-width: 0;
    transition: all 0.3s ease;
}

.phone-input:focus {
    outline: none;
    border-color: #09189e;
    border-right: none;
    box-shadow: 0 0 0 3px rgba(9, 24, 158, 0.1);
    background-color: #f8f9ff;
}

/* Date Input Styling */
input[type="date"].form-control {
    direction: rtl;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    font-family: "micro-regular", sans-serif;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    margin-right: 8px;
    margin-left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
    opacity: 1;
}

input[type="date"].form-control::-webkit-datetime-edit {
    direction: rtl;
    padding: 0;
}

input[type="date"].form-control::-webkit-datetime-edit-fields-wrapper {
    direction: rtl;
}

input[type="date"].form-control::-webkit-datetime-edit-text {
    padding: 0 0.2em;
}

input[type="date"].form-control::-webkit-datetime-edit-month-field,
input[type="date"].form-control::-webkit-datetime-edit-day-field,
input[type="date"].form-control::-webkit-datetime-edit-year-field {
    padding: 0 0.2em;
}

/* Firefox date input */
input[type="date"].form-control::-moz-calendar-picker-indicator {
    cursor: pointer;
    margin-right: 8px;
    margin-left: 0;
}

/* Clear invalid date styling */
input[type="date"].form-control:invalid {
    color: #999;
}

input[type="date"].form-control:valid {
    color: #333;
}

/* Small Text Helper */
.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-family: "micro-regular", sans-serif;
}

.text-muted {
    color: #6c757d !important;
}

/* ===================================
   Attendance Method Styles
   =================================== */

.attendance-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.attendance-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.attendance-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.attendance-label {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.attendance-label:hover {
    border-color: #cab04d;
    background-color: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 24, 158, 0.1);
}

.attendance-radio:checked + .attendance-label {
    border-color: #09189e;
    background-color: #f0f4ff;
    box-shadow: 0 4px 16px rgba(9, 24, 158, 0.15);
}

.attendance-radio:checked + .attendance-label .option-header {
    color: #09189e;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.2rem;
    font-family: "micro-bold", sans-serif;
    transition: color 0.3s ease;
}

.option-header i {
    font-size: 1.5rem;
    color: #cab04d;
}

.option-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-right: 2.5rem;
    font-family: "micro-regular", sans-serif;
}

.attendance-radio:checked + .attendance-label .option-description {
    color: #444;
}

/* Responsive Design for Attendance Options */
@media (max-width: 768px) {
    .attendance-label {
        padding: 1.25rem;
    }

    .option-header {
        font-size: 1.1rem;
    }

    .option-header i {
        font-size: 1.3rem;
    }

    .option-description {
        font-size: 0.9rem;
        padding-right: 0;
    }
}

/* Print Styles */
@media print {
    .form-navigation,
    .step-indicators {
        display: none;
    }
}
