@import url('../lib/vazir-font/font-face.min.css');

html {
    font-size: 14px;
    scroll-behavior: smooth;
    font-family: 'Vazirmatn', sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Vazirmatn', sans-serif;
}

/* Required field styling */
.required::after {
    content: " *";
    color: #d00;
}

/* Payment box styling */
.payment-box {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff5f2;
}

/* Form validation styles */
.field-validation-error {
    color: #d00;
    font-size: 0.875rem;
}

.input-validation-error {
    border-color: #d00;
}

.validation-summary-errors {
    color: #d00;
    margin-bottom: 1rem;
}

/* Custom form styles */
.form-group {
    position: relative;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Info box styling */
.info-box {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

/* Better accessibility */
@media (prefers-reduced-motion: no-preference) {
    .form-control:focus {
        transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    }
}

/* RTL specific adjustments */
[dir="rtl"] .form-check-input {
    margin-left: 0;
    margin-right: -1.25rem;
}

[dir="rtl"] .form-check-label {
    padding-left: 0;
    padding-right: 1.25rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .row-cols-2 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
