/* Volunteer Form Section Styles */
.volunteer-form-section {
    background-color: #FFFBF4;
}

.career-form-placeholder {
    padding: 60px 20px;
    text-align: center;
}
.career-form-placeholder .form-type-title {
    font-family: var(--font-sch);
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.volunteer-form-message {
    padding: 30px 20px;
    margin-top: 20px;
    border-radius: 4px;
    font-family: var(--font-sch);
}
.volunteer-form-message.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.volunteer-form-message.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.breadcrumb-form-message {
    padding: 60px 20px;
}
.breadcrumb-form-message p {
    font-size: 18px;
    font-family: var(--font-sch);
}

.breadcrumb-form-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
}

.breadcrumb-form-custom ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.breadcrumb-form-custom ul li{
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-sch);
    color: #000;
    text-transform: uppercase;
}

.breadcrumb-form-custom ul li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    margin-right: 2px;
    color: #000;
    font-weight: 600;
}


/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Form Header Row */
.form-header-row {
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: flex-start;*/
    /*gap: 40px;*/
    margin-bottom: 70px;
}

/* Step 2 Content Layout */
.form-step-two-content {
    margin-bottom: 70px;
}

/* Step 3 Content Layout */
.form-step-three-content {
    margin-bottom: 70px;
}

/* Step 4 Content Layout */
.form-step-four-content {
    margin-bottom: 70px;
}

.form-question-group {
    margin-bottom: 40px;
}

.form-question-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    font-family: var(--font-sch);
    line-height: 1.5;
    word-wrap: break-word;
}

.checkbox-group-inline {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.checkbox-group-inline .form-check-nowrap .form-check-label {
    white-space: nowrap;
}


/* Checkbox Styling */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    cursor: pointer;
    margin-top: 2px;
    background: transparent !important;
}

.form-check-input:checked {
    background-color: #E40571 !important; 
    border-color: #E40571 !important;
    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") !important;
}

.form-check-input:focus {
    border-color: #E40571 !important;
    box-shadow: none !important;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.availability-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
    justify-content: space-between;
}

.availability-group .form-check {
    flex-direction: row-reverse;
}

/* Role preference - Bootstrap row/col-lg-4 handles grid */
.role-preference-group {
    flex-direction: column;
    gap: 0;
}

.role-preference-group .form-check {
    margin-bottom: 16px;
}

.role-preference-group .form-check:last-child {
    margin-bottom: 0;
}

.role-preference-group .form-check-label {
    font-weight: 600;
    font-size: 16px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.role-preference-group .form-check-input {
    flex-shrink: 0;
    margin-top: 3px;
}

.conditional-field {
    margin-top: 15px;
    display: none;
    width: 100%;
}

.conditional-field.show,
.form-step-three-content .conditional-field.show {
    display: block !important;
}

.conditional-field .form-field-wrapper {
    width: 100%;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
    border: 1px solid #000;
    border-radius: 0;
    padding: 15px;
    background: transparent;
}

textarea.form-input:focus {
    border-color: #E40571;
    border-bottom-color: #E40571;
}

/* Conditional Field Inline Layout */
.conditional-field-inline {
    display: block;
    width: 100%;
    font-size: 0;
}

.conditional-field-inline .form-label-inline {
    display: inline;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    font-family: var(--font-sch);
    white-space: nowrap;
    vertical-align: top;
}

/* Lined Input Container - Reference from React component (ElegantLinedInput) */
.lined-input-container {
    position: relative;
    width: 100%;
    padding: 8px 0;
    margin: 0;
}

/* Line Layer - Draws the horizontal lines */
.lined-input-lines-layer {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    pointer-events: none;
    background-image: linear-gradient(
        to bottom,
        transparent 43px,
        #1a1a1a 1px
    );
    background-size: 100% 44px;
    height: 132px; /* 44px * 3 lines */
    z-index: 0;
}

/* Content Layer - Contains label and editable content */
.lined-input-content {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

/* Label - Floated left so text wraps around it */
.lined-input-label {
    float: left;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-family: var(--font-sch);
    line-height: 44px;
    margin-right: 12px;
    padding-right: 6px;
    background-color: #fcfaf3;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Editable content div */
.lined-input-editable {
    outline: none;
    color: #222;
    font-weight: 500;
    font-size: 17px;
    font-family: var(--font-sch);
    line-height: 44px;
    min-height: 132px; /* 44px * 3 lines */
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.lined-input-editable:focus {
    outline: none;
}

/* Focus state - change line color to pink */
.lined-input-container:has(.lined-input-editable:focus) .lined-input-lines-layer {
    background-image: linear-gradient(
        to bottom,
        transparent 43px,
        #E40571 1px
    );
}

.form-textarea-lines {
    display: block;
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    font-size: 14px;
    font-family: var(--font-sch);
    color: #000;
    box-sizing: border-box;
    resize: none;
    line-height: 30px;
    min-height: 90px;
    height: 90px;
    overflow-y: auto;
    background-image: 
        repeating-linear-gradient(to bottom, 
            transparent 0px, 
            transparent 29px, 
            #000 29px, 
            #000 30px, 
            transparent 30px
        );
    background-size: 100% 30px;
    background-position: 0 0;
    background-repeat: repeat-y;
}

.form-textarea-lines:focus {
    outline: none;
    background-image: 
        repeating-linear-gradient(to bottom, 
            transparent 0px, 
            transparent 29px, 
            #E40571 29px, 
            #E40571 30px, 
            transparent 30px
        );
}

.form-textarea-inline {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 250px);
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    background: transparent;
    padding: 0;
    padding-bottom: 5px;
    margin: 0;
    font-size: 16px;
    font-family: var(--font-sch);
    color: #000;
    box-sizing: border-box;
    resize: none;
    line-height: 30px;
    min-height: 90px;
    height: 90px;
    overflow-y: auto;
    background-image: 
        repeating-linear-gradient(to bottom, 
            transparent 0px, 
            transparent 29px, 
            #000 29px, 
            #000 30px, 
            transparent 30px
        );
    background-size: 100% 30px;
}

.form-textarea-inline:focus {
    outline: none;
    border-bottom-color: #E40571;
    background-image: 
        repeating-linear-gradient(to bottom, 
            transparent 0px, 
            transparent 29px, 
            #E40571 29px, 
            #E40571 30px, 
            transparent 30px
        );
}

/* Conditional Field Row Layout (for single input) */
.conditional-field-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

.form-label-inline {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    font-family: var(--font-sch);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0;
}

/* Form Line Style (Underline Inputs) */
.form-input-line {
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    background: transparent;
    padding: 5px 0;
    width: 100%;
    font-size: 16px;
    font-family: var(--font-sch);
    color: #000;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
}

.form-input-line:focus {
    outline: none;
    border-bottom-color: #E40571;
}

.form-lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    flex: 1;
    min-width: 0;
    align-self: flex-start;
}

.form-lines-inline .form-line {
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

.form-lines-inline .form-line:last-child {
    margin-bottom: 0;
}

.form-line {
    width: 100%;
    height: 1px;
    background-color: #000;
    border: none;
    margin: 0;
    display: block;
}

.form-field-wrapper {
    flex: 1;
    max-width: 600px;
}

.conditional-field .form-field-wrapper {
    max-width: 100%;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-family: var(--font-sch);
}

.form-label .required-mark {
    color: #E40571;
    font-weight: 700;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    padding: 15px 0 10px;
    font-size: 16px;
    color: #000;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #E40571;
}

.form-input::placeholder {
    color: #999;
    opacity: 0.6;
}

/* Continue Button */
.continue-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-top: 0;
}

.continue-btn:hover {
    opacity: 0.8;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-bottom: 50px;
    flex-direction: row;
}

.back-btn:hover {
    opacity: 0.8;
}

.back-arrow-icon {
    transform: rotate(180deg);
}

.form-step[data-step="1"] .back-btn {
    display: none;
}

.btn-text {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-sch);

}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Progress Indicator */
.progress-indicator {
    position: relative;
    width: 100%;
    padding: 40px 0 20px 0;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #DDCCD5;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-line-filled {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    background-color: #E40571;
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.3s ease, left 0.3s ease;
    width: 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    position: relative;
}

.progress-step:first-child {
    align-items: flex-start;
}

.progress-step:last-child {
    align-items: flex-end;
}

.progress-step::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #DDCCD5;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    display: block;
}

.progress-step.active::before {
    background-color: #E40571;
    width: 28px;
    height: 28px;
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: var(--font-sch);
    white-space: nowrap;
    margin-top: 0;
}

.progress-step.active .step-label {
    color: #000;
    font-weight: 500;
}

/* Upload Section */
.upload-section {
    margin-top: 40px;
    padding: 30px 40px;
    border: none;
    border-radius: 20px;
    background-color: transparent;
    border: 1px solid #000;
}

.upload-title {
    font-size: 26px;
    font-weight: 600;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-lit);
    margin-bottom: 20px;
}

.upload-buttons {
    display: flex;
    flex-direction: column;
}

.upload-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0px;
    border-top: 1px solid #F9F4ED;
    border-radius: 0;
    background-color: #FFFBF4;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upload-btn:hover {
    border-color: #E40571;
    background-color: #FFFBF4;
}

.upload-text {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-sch);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.upload-text.has-file {
    color: #E40571;
    font-weight: 500;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-input {
    display: none;
}

/* Form Input Error State */
/* Bold outline for empty required fields */
.form-input.error,
.form-input.error:focus {
    /* border: 2px solid #E40571 !important; */
    border-bottom: 2px solid #E40571 !important;
}

textarea.form-input.error {
    border: 2px solid #E40571 !important;
}

.form-check-input.error {
    border-bottom: 2px solid #E40571 !important;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .form-header-row {
        /*flex-direction: column;*/
        /*gap: 20px;*/
        margin-bottom: 60px;
    }   
}

@media (max-width: 768px) {
    .volunteer-form-wrapper {
        padding: 40px 15px;
    }

    .form-header-row {
        /*flex-direction: column;*/
        /*gap: 20px;*/
        margin-bottom: 60px;
    }

    .form-header-row .form-field-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .form-header-row .continue-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .back-btn {
        margin-bottom: 30px;
    }

    .form-step-two-content {
        margin-bottom: 60px;
    }

    .form-step-three-content {
        margin-bottom: 60px;
    }

    .form-step-four-content {
        margin-bottom: 60px;
    }

    .form-step-four-content .reference-section {
        margin-bottom: 50px;
    }

    .form-step-four-content .reference-section:last-child {
        margin-bottom: 30px;
    }

    .form-step-four-content .d-flex.justify-content-end {
        justify-content: flex-start !important;
    }

    .form-step-four-content .submit-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .form-question-group {
        margin-bottom: 30px;
    }

    .radio-group {
        gap: 15px;
    }

    .checkbox-group {
        gap: 12px;
    }

    .checkbox-group-inline {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .role-preference-group .form-check-label {
        font-size: 14px;
    }

    .availability-group {
        gap: 15px;
    }

    .form-field-wrapper {
        max-width: 100%;
    }

    .continue-btn {
        margin-top: 0;
        align-self: flex-start;
        width: 100%;
        justify-content: flex-start;
    }

    .form-step-three-content .d-flex.justify-content-end,
    .form-step-four-content .d-flex.justify-content-end {
        justify-content: flex-start !important;
    }

    .form-step-three-content .continue-btn,
    .form-step-four-content .continue-btn,
    .form-step-four-content .submit-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .upload-section {
        margin-top: 0;
    }


    .progress-steps {
        padding: 0;
    }

    .step-label {
        font-size: 10px;
    }

    .progress-step::before {
        width: 20px;
        height: 20px;
    }

    .progress-step.active::before {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .form-header-row {
        gap: 15px;
        margin-bottom: 40px;
    }

    .back-btn {
        margin-bottom: 25px;
    }

    .form-step-three-content {
        margin-bottom: 40px;
    }

    .form-step-four-content {
        margin-bottom: 40px;
    }

    .form-step-four-content .reference-section {
        margin-bottom: 40px;
    }

    .form-step-four-content .reference-section:last-child {
        margin-bottom: 25px;
    }

    .form-step-four-content .d-flex.justify-content-end {
        margin-top: 30px !important;
    }

    .form-step-three-content .d-flex.justify-content-end,
    .form-step-four-content .d-flex.justify-content-end {
        margin-top: 30px !important;
    }

    .form-question-group {
        margin-bottom: 25px;
    }

    .form-question-label {
        font-size: 12px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .availability-group {
        flex-direction: column;
        gap: 12px;
    }

    .upload-btn {
        padding: 12px 15px;
    }

    .upload-text {
        font-size: 12px;
    }


    .progress-steps {
        padding: 0;
    }

    .step-label {
        font-size: 9px;
    }

    .progress-step::before {
        width: 16px;
        height: 16px;
    }

    .progress-step.active::before {
        width: 16px;
        height: 16px;
    }
}

.form-check {
    display: flex !important;
    gap: 7px;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.form-check label {
    font-weight: 600;
    font-size: 16px;
}

.form-step-three-content .form-check .form-check-input {
    float: right ;
    /* margin-right: -1.5em ; */
    margin-left: 0;
}

.checkbox-group .form-check {
    margin-right: 0;
}

.width-all {
    max-width: 100%;
}

.reference-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    font-family: var(--font-sch);
    text-transform: uppercase;
}

.form-step-four-content .reference-section {
    margin-bottom: 70px;
}

.form-step-four-content .reference-section:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for Step 4 and tablets - Bootstrap handles grid */
@media (max-width: 991px) {
    .form-step-four-content .reference-section {
        margin-bottom: 50px;
    }
}

.margin-cut {
    padding-top: 20px;
    padding-bottom: 20px;
}


.form-height label {
    min-height: 50px;
}