/* 
 * Jana Sampark Seva Abhiyan - Critical CSS
 * Extracted from style.bundle.css for optimal performance
 * Contains only CSS rules required for jana-sampark-seva-abhiyan.blade.php
 */

/* CSS Variables */
:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000000;
    --bs-white: #ffffff;
    --bs-gray: #7E8299;
    --bs-gray-dark: #3F4254;
    --bs-gray-100: #f5f8fa;
    --bs-gray-200: #eff2f5;
    --bs-gray-300: #E4E6EF;
    --bs-gray-400: #B5B5C3;
    --bs-gray-500: #A1A5B7;
    --bs-gray-600: #7E8299;
    --bs-gray-700: #5E6278;
    --bs-gray-800: #3F4254;
    --bs-gray-900: #181C32;
    --bs-light: #f5f8fa;
    --bs-primary: #fe6601;
    --bs-secondary: #E4E6EF;
    --bs-success: #009ef7;
    --bs-info: #7239ea;
    --bs-warning: #ffc700;
    --bs-danger: #f1416c;
    --bs-dark: #181C32;
    --bs-body-color: #181C32;
    --bs-body-bg: #ffffff;
    --bs-border-color: #eff2f5;
    --bs-border-radius: 0.475rem;
    --bs-border-radius-sm: 0.425rem;
    --bs-border-radius-lg: 0.625rem;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Helvetica, "sans-serif";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

/* Links */
a {
    color: rgba(244, 159, 0, 0.64);
    text-decoration: none;
}

a:hover {
    color: rgba(244, 159, 0, 0.64);
}

/* Form Elements */
label {
    display: inline-block;
}

input, button, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="submit"] {
    -webkit-appearance: button;
}

/* Grid System */
.container-xxl {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-md-3 { flex: 0 0 auto; width: 25%; }
.col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-md-6 { flex: 0 0 auto; width: 50%; }
.col-md-12 { flex: 0 0 auto; width: 100%; }

/* Gap Utilities */
.g-9 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

/* Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
}

/* Flexbox Utilities */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-column-fluid { flex: 1 0 auto; }
.flex-sm-nowrap { flex-wrap: nowrap !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-7 { margin-bottom: 1.75rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-xl-10 { margin-bottom: 2.5rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-md-2 { margin-top: 0.5rem !important; }

.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }

.p-4 { padding: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pt-9 { padding-top: 2.25rem !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-danger { color: #f1416c !important; }
.text-gray-600 { color: #7E8299 !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

.fs-1 { font-size: calc(1.375rem + 1.5vw) !important; }
.fs-6 { font-size: 1.075rem !important; }
.fs-7 { font-size: 0.95rem !important; }

@media (min-width: 1200px) {
    .fs-1 { font-size: 2.5rem !important; }
}

/* Position Utilities */
.position-relative { position: relative !important; }

/* Border Utilities */
.border-top { border-top: 1px solid var(--bs-border-color) !important; }
.border-2 { border-width: 2px !important; }
.border-secondary { border-color: var(--bs-secondary) !important; }
.rounded { border-radius: var(--bs-border-radius) !important; }

/* List Utilities */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}

/* Card Component */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.card-body {
    flex: 1 1 auto;
    padding: 2rem 2.25rem;
}

/* Form Components */
.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.775rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #181C32;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #E4E6EF;
    appearance: none;
    border-radius: 0.475rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    color: #181C32;
    background-color: #ffffff;
    border-color: #B5B5C3;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 136, 1, 0.25);
}

.form-control-solid {
    background-color: #F5F8FA;
    border-color: #F5F8FA;
}

.form-control-solid:focus {
    background-color: #EBEDF3;
    border-color: #EBEDF3;
}

.form-select {
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: #fe6601;
    border-color: #fe6601;
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-label {
    display: inline-block;
}

.form-check-custom .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-solid .form-check-input {
    border: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #181C32;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.775rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0.475rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
    color: #181C32;
}

.btn-primary {
    color: #ffffff;
    background-color: #fe6601;
    border-color: #fe6601;
}

.btn-primary:hover {
    color: #ffffff;
    background-color: #e67a01;
    border-color: #e67a01;
}

.btn-secondary {
    color: #3F4254;
    background-color: #E4E6EF;
    border-color: #E4E6EF;
}

.btn-secondary:hover {
    color: #3F4254;
    background-color: #d7dae7;
    border-color: #d7dae7;
}

.btn-light {
    color: #7E8299;
    background-color: #f5f8fa;
    border-color: #f5f8fa;
}

.btn-light:hover {
    color: #7E8299;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

/* Spinners */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Align Items */
.align-middle {
    vertical-align: middle !important;
}

/* SVG Icons */
.svg-icon {
    display: inline-flex;
    align-self: center;
}

.svg-icon svg {
    height: 1rem;
    width: 1rem;
    fill: currentColor;
}

.svg-icon-1 svg {
    height: 1.5rem;
    width: 1.5rem;
}

/* Gap Utility */
.gap-5 {
    gap: 1.25rem !important;
}

/* Custom Classes for Jana Sampark Page */
.capitalize {
    text-transform: capitalize;
}

.required:after {
    content: " *";
    color: #f1416c;
    font-weight: 700;
}

.fv-row {
    position: relative;
}

.bordered-section {
    border: 1px solid #E4E6EF;
    background-color: #ffffff;
}

.section-header {
    font-size: 1.15rem;
    font-weight: 600;
    color: #181C32;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Step Indicator Styles */
.circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E4E6EF;
    color: #7E8299;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.circle.active {
    background-color: #fe6601;
    color: #ffffff;
}

.line {
    display: inline-block;
    width: 60px;
    height: 2px;
    background-color: #E4E6EF;
    margin: 0 10px;
    vertical-align: middle;
}

/* Indicator States */
.indicator-label {
    display: inline-block;
}

.indicator-progress {
    display: none;
}

/* Custom Text Colors */
.text-brown {
    color: #8B4513;
}

.text-hover-orange:hover {
    color: #fe6601;
}

/* Hover Effects */
.hover-border:hover,
.hover-border:focus {
    border-color: #B5B5C3 !important;
}

/* Blood Bank Form Specific */
.blood-bank-form {
    margin-top: 20px;
}

.content {
    padding: 1rem 0;
}

/* Login Input Styles */
.login-input {
    position: relative;
}

.input-icon {
    padding-right: 3rem;
}

.search-login {
    background-color: #F5F8FA;
}

.search-icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Fixed Width Desktop */
.fixed-width-desktop {
    max-width: 100%;
}

@media (min-width: 768px) {
    .fixed-width-desktop {
        max-width: 800px;
    }
}

/* Step Display */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Visitor Content */
.section-visitor {
    width: 100%;
}

.visitor-content {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .fs-1 {
        font-size: 1.75rem !important;
    }
    
    .modal-footer {
        padding: 1rem;
    }
}

/* Hide elements */
[hidden] {
    display: none !important;
}

/* Form validation styles */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: #f1416c;
}

input[type="file"] {
    padding: 0.8rem 1rem;
}

/* Textarea */
textarea {
    min-height: calc(1.5em + 1.55rem + 2px);
}

textarea.form-control {
    resize: vertical;
}

/* Select Disabled State */
select:disabled {
    pointer-events: none;
    background-color: #f0f0f0;
    opacity: 0.65;
}

/* Image Styles */
img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* Template Element */
template {
    display: none;
}

/* Print Styles */
@media print {
    .btn,
    .modal-footer,
    .spinner-border {
        display: none !important;
    }
}

