/* Alteration Service Page Styles */

.alteration-service-page {
    background-color: var(--stone-beige, #D2C8BC);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.alteration-service-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.alteration-service-container .container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
}

@media (max-width: 1199px) {
    .alteration-service-container .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 767px) {
    .alteration-service-container .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* RTL Support */
[dir="rtl"] .alteration-service-container {
    direction: rtl;
}

/* Alteration Service Section Styles */
.alteration-service-section {
    position: relative;
}

/* Steps Wrapper with Dark Brown Background */
.alteration-service-steps-wrapper {
    width: 100%;
    margin-left: 21px;
    margin-right: 21px;
    max-width: calc(100% - 42px);
    min-height: auto; /* Default height */
}

.alteration-service-steps-wrapper .container.alteration-service-steps-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 51px;
    padding-right: 34px;
}

@media (max-width: 1199px) {
    .alteration-service-steps-wrapper {
        margin-left: 20px;
        margin-right: 20px;
        max-width: calc(100% - 40px);
    }
    
    .alteration-service-steps-wrapper .container.alteration-service-steps-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 767px) {
    .alteration-service-steps-wrapper {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .alteration-service-steps-wrapper .container.alteration-service-steps-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.alteration-service-steps-content {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Header Styles inside dark brown background */
.alteration-service-header {
    margin-bottom: 50px;
    padding-left: 0;
}

.alteration-service-title {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 49.88px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    padding: 37px 0 0 0;
}

.alteration-service-subtitle {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    margin: 0;
    padding: 0;
}

/* Steps Accordion Styles - Similar to FAQs */
.alteration-service-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-top: 0;
}

.alteration-service-step-item {
    border-bottom: 1px solid var(--STONE-BEIGE, #D2C8BC);
    padding: 40px 0;
}

.alteration-service-step-item:last-child {
    border-bottom: none;
}

.alteration-service-step-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 145px;
}

/* RTL: Step container - titles on right, content on left */
[dir="rtl"] .alteration-service-step-container {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.alteration-service-step-header {
    flex: 0 0 241px;
    min-width: 241px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    order: 1;
}

.alteration-service-step-header:hover {
    opacity: 0.9;
}

.alteration-service-step-title-wrapper {
    width: 100%;
}

.alteration-service-step-content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    order: 2; /* Content appears after title on desktop */
}

/* RTL: Titles on right (order 2), content on left (order 1) */
[dir="rtl"] .alteration-service-step-header {
    order: 2;
    text-align: right;
}

[dir="rtl"] .alteration-service-step-content-wrapper {
    order: 1;
}

.alteration-service-step-title {
    font-family: 'The Year of the Camel', serif;
    font-weight: 300;
    font-size: 12px;
    line-height: normal;
    color: var(--stone-beige, #D2C8BC);
    margin: 0;
    padding: 0;
}

.alteration-service-step-collapse {
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    order: 2; /* Content appears after title on desktop */
    display: block; /* Always visible on desktop */
    height: auto; /* Show content on desktop */
}

.alteration-service-step-collapse:not(.show) {
    display: block; /* Override Bootstrap's display:none on desktop */
    height: auto; /* Show content on desktop even when not expanded */
}

.alteration-service-step-collapse.collapsing {
    position: relative;
    height: 0 !important;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    display: block !important;
    opacity: 0;
}

.alteration-service-step-collapse.show {
    display: block !important;
    height: auto !important;
    opacity: 1;
}

.alteration-service-step-content-body {
    padding-top: 0;
    font-family: 'Aileron', sans-serif;
    font-weight: 300;
    font-size: 10px;
    line-height: normal;
    color: var(--stone-beige, #D2C8BC);
}

.alteration-service-step-content-body p {
    margin: 0;
    padding: 0;
}

/* Form Wrapper */
.alteration-service-form-wrapper {
    width: 100%;
}

.alteration-service-form-wrapper .container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
}

@media (max-width: 1199px) {
    .alteration-service-form-wrapper .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 767px) {
    .alteration-service-form-wrapper .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.alteration-service-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* Form Section Styles */
.alteration-service-form-section {
    margin-top: 60px;
}

.alteration-service-form-title {
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 49.88px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    margin: 0 0 40px 0;
    padding: 0;
}

.alteration-service-form {
    width: 100%;
    max-width: 723px;
    margin: 0 auto;
}

.alteration-service-form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 37px;
    margin-bottom: 20px;
}

.alteration-service-form-field {
    flex: 1 1 calc(50% - 18.5px);
    min-width: 0;
}

.alteration-service-form-field-full {
    flex: 1 1 100%;
    width: 100%;
}

.alteration-service-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--chestnut-brown, #6C3E24);
    background-color: var(--stone-beige, #D2C8BC);
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    border-radius: 0 !important;
}

.alteration-service-input::placeholder {
    color: var(--mink-taupe, #998273);
}

/* Arabic font for text but not numbers */
[dir="rtl"] .alteration-service-input,
[dir="rtl"] .alteration-service-input::placeholder {
    font-family: 'The Year of the Camel', serif;
}

.alteration-service-input:focus {
    border-color: var(--warm-caramel, #90674D);
}

/* Custom Select Dropdown Styles */
.alteration-service-custom-select-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.alteration-service-select-trigger {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--chestnut-brown, #6C3E24);
    background-color: var(--stone-beige, #D2C8BC);
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: normal;
    color: var(--espresso-black, #231010);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    gap: 10px;
}

.alteration-service-select-placeholder {
    color: var(--mink-taupe, #998273);
    flex: 1;
    font-family: 'Aileron', sans-serif;
    font-size: 13px;
}

/* Arabic font for placeholder text but not numbers */
[dir="rtl"] .alteration-service-select-placeholder {
    font-family: 'The Year of the Camel', serif;
}

.alteration-service-select-arrow {
    font-size: 10px;
    color: var(--espresso-black, #231010);
    transition: transform 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
    width: 10px;
    text-align: center;
}

.alteration-service-select-trigger[aria-expanded="true"] .alteration-service-select-arrow {
    transform: rotate(180deg);
}

.alteration-service-select-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background-color: rgba(210, 200, 188, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--chestnut-brown, #6C3E24);
    border-top: none;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    display: none;
    margin-top: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alteration-service-select-dropdown.open {
    display: block;
}

.alteration-service-select-category {
    border-bottom: 1px solid rgba(108, 62, 36, 0.2);
}

.alteration-service-select-category:last-child {
    border-bottom: none;
}

.alteration-service-select-category-header {
    width: 100%;
    padding: 12px 15px;
    font-family: 'The Year of the Camel', serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--espresso-black, #231010);
    background-color: rgba(108, 62, 36, 0.05);
    border: none;
    border-bottom: 1px solid rgba(108, 62, 36, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: background-color 0.2s ease;
    gap: 10px;
}

.alteration-service-select-category-header:hover {
    background-color: rgba(108, 62, 36, 0.1);
}

.alteration-service-category-arrow {
    font-size: 10px;
    color: var(--espresso-black, #231010);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
    width: 10px;
    text-align: center;
}

/* Category arrow rotation when expanded */
.alteration-service-select-category-header[aria-expanded="true"] .alteration-service-category-arrow {
    transform: rotate(180deg);
}

/* Also handle when options have show class */
.alteration-service-select-category-options.show {
    /* This is handled by JavaScript */
}

.alteration-service-select-category-options {
    padding: 8px 0;
    display: none;
    overflow: hidden;
    transition: height 0.3s ease;
}

.alteration-service-select-category-options.show {
    display: block;
}

.alteration-service-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.alteration-service-select-option:hover {
    background-color: rgba(108, 62, 36, 0.05);
}

.alteration-service-select-option-text {
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--espresso-black, #231010);
    flex: 1;
    min-width: 0;
    text-align: left;
    order: 1;
}

/* Arabic font for option text values */
[dir="rtl"] .alteration-service-select-option-text {
    font-family: 'The Year of the Camel', serif;
}

/* Numbers should stay in Aileron font */
.alteration-measurement-number {
    font-family: 'Aileron', sans-serif !important;
}

.alteration-service-measurement-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--chestnut-brown, #6C3E24);
    background-color: var(--stone-beige, #D2C8BC);
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--espresso-black, #231010);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    border-radius: 0 !important;
    flex-shrink: 0;
}

.alteration-service-measurement-input::placeholder {
    color: var(--mink-taupe, #998273);
    font-size: 11px;
}

.alteration-service-measurement-input:focus {
    border-color: var(--warm-caramel, #90674D);
}

.alteration-service-option-radio {
    width: 0.9375rem;
    height: 0.9375rem;
    border: 1px solid var(--chestnut-brown, #6c3e24);
    border-radius: 50%;
    appearance: none;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background-color: transparent;
    box-sizing: border-box;
    order: 3;
    align-self: center;
}

.alteration-service-option-radio:checked {
    border-color: var(--chestnut-brown, #6c3e24);
    background-color: transparent;
}

.alteration-service-option-radio:checked::after {
    content: '';
    position: absolute;
    width: 0.6875rem;
    height: 0.6875rem;
    background-color: var(--WARM-CARAMEL, #90674D);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.alteration-service-option-radio-label {
    width: 0.9375rem;
    height: 0.9375rem;
    cursor: pointer;
    order: 2;
    flex-shrink: 0;
    margin-right: 0.5rem;
    align-self: center;
}

/* RTL Support for Custom Select */
[dir="rtl"] .alteration-service-select-trigger {
    text-align: right;
    flex-direction: row-reverse;
}

[dir="rtl"] .alteration-service-select-arrow {
    margin-left: 0;
    margin-right: 10px;
    order: -1;
    flex-shrink: 0;
    width: 10px;
    text-align: center;
}

[dir="rtl"] .alteration-service-select-placeholder {
    order: 1;
}

[dir="rtl"] .alteration-service-select-category-header {
    text-align: right;
    flex-direction: row-reverse;
    justify-content: space-between;
}

[dir="rtl"] .alteration-service-category-arrow {
    margin-left: 0;
    margin-right: 10px;
    order: -1;
    flex-shrink: 0;
    width: 10px;
    text-align: center;
}

[dir="rtl"] .alteration-service-select-option {
    flex-direction: row-reverse;
    justify-content: space-between;
}

[dir="rtl"] .alteration-service-select-option-text {
    text-align: right;
    order: 1;
    flex: 1;
}

[dir="rtl"] .alteration-service-option-radio {
    order: -1;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
}

[dir="rtl"] .alteration-service-option-radio-label {
    margin-right: 0;
    margin-left: 0.5rem;
    order: -1;
}

.alteration-service-submit-button {
    padding: 15px 0px !important;
    margin-top: 0.25rem;
    width: 100%;
    background: var(--mink-taupe, #998273) !important;
    color: var(--cocoa-brown, #271519) !important;
    text-align: center;
    font-family: "the year of the camel", serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-weight: 300 !important;
    border: none !important;
    text-transform: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.alteration-service-submit-button:hover {
    background-color: var(--stone-beige, #D2C8BC) !important;
    border: 1px solid var(--espresso-black, #231010) !important;
    color: var(--espresso-black, #231010) !important;
}

.alteration-service-message {
    margin-top: 20px;
    padding: 15px 20px;
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 0;
    border: 1px solid;
    background-color: var(--stone-beige, #D2C8BC);
    text-align: left;
}

.alteration-service-success {
    background-color: rgba(90, 167, 136, 0.05);
    color: var(--sucess-color, #5AA788);
    border-color: var(--sucess-color, #5AA788);
}

.alteration-service-error {
    background-color: rgba(236, 85, 80, 0.05);
    color: var(--danger-color, #EC5550);
    border-color: var(--danger-color, #EC5550);
}

/* RTL Support for Messages */
[dir="rtl"] .alteration-service-message {
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .alteration-service-steps-wrapper {
        min-height: 100vh; /* Increase height on smaller screens */
        padding-top: 37px !important;
        padding-bottom: 60px !important;
    }
    
    .alteration-service-step-container {
        flex-direction: column;
        gap: 0;
    }
    
    .alteration-service-step-header {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        order: 1; /* Title first on mobile */
    }
    
    .alteration-service-step-title-wrapper {
        width: 100%;
    }
    
    .alteration-service-step-content-wrapper {
        order: 2; /* Content appears after title on mobile */
        width: 100%;
        flex: 1 1 100%;
    }
    
    .alteration-service-step-collapse {
        display: none !important; /* Hidden by default on mobile */
        height: 0 !important;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }
    
    .alteration-service-step-collapse.show {
        display: block !important;
        height: auto !important;
        opacity: 1;
    }
    
    .alteration-service-step-collapse.collapsing {
        display: block !important;
        height: 0 !important;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        opacity: 0;
    }
    
    .alteration-service-step-item {
        padding: 40px 0; /* Increased spacing between steps */
    }
    
    .alteration-service-step-title {
        font-size: 14px; /* Increased to 14px */
    }
    
    .alteration-service-step-content-body {
        padding-top: 15px;
        font-size: 12px; /* Slightly larger on tablet */
    }
    
    /* Reduce spacing between steps and form section on mobile */
    .alteration-service-form-wrapper {
        padding-top: 30px !important;
    }
    
    .alteration-service-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .alteration-service-form-field {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .alteration-service-steps-wrapper {
        min-height: 100vh; /* Increase height on mobile */
        padding-top: 37px !important;
        padding-bottom: 60px !important;
    }
    
    .alteration-service-title,
    .alteration-service-form-title {
        font-size: 32px;
        padding: 8px 0 0 0;
    }
    
    .alteration-service-subtitle {
        font-size: 16px;
    }
    
    .alteration-service-step-item {
        padding: 40px 0; /* Increased spacing between steps */
    }
    
    .alteration-service-step-header {
        gap: 15px;
    }
    
    .alteration-service-step-title {
        font-size: 14px; /* Increased to 14px */
    }
    
    .alteration-service-step-content-body {
        font-size: 13px; /* Increased from 11px */
        padding-top: 15px;
    }
    
    /* Reduce spacing between steps and form section on mobile */
    .alteration-service-form-wrapper {
        padding-top: 30px !important;
    }
}

/* RTL Support */
[dir="rtl"] .alteration-service-step-title-wrapper {
    text-align: right;
    width: 100%;
}

[dir="rtl"] .alteration-service-form-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .alteration-service-select {
    background-position: left 12px center;
    padding-left: 40px;
    padding-right: 12px;
}
