@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
  
  :root {
    --clr-button: #1E90FF;
    --clr-button-rgb: 30, 144, 255;
    --clr-button-hover: #1978D2;
    --clr-button-hover-rgb: 25, 120, 210;
    --clr-button-active: #1565C0;
    --clr-button-active-rgb: 21, 101, 192;
    --clr-button-active-hover: #125699;
    --clr-button-active-hover-rgb: 18, 86, 153;
    --clr-main: #A7C7E7;
    --clr-main-rgb: 167,199,231;
    --clr-accent: #FFD59E;
    --clr-accent-rgb: 255, 213, 158;
    --clr-secondary: #FBBF8F;
    --clr-secondary-rgb: 251, 191, 143;
    --clr-white: #fff;
    --clr-white-rgb: 255, 255, 255;
    --clr-black: #121212;
    --clr-black-rgb: 18, 18, 18;
    --clr-grey: #f1f1f1;
    --clr-grey-rgb: 241, 241, 241;
    --clr-semi-dark: #b8b8b8;
    --clr-semi-dark-rgb: 184, 184, 184;
    --clr-dark-grey: #4d4d4d;
    --clr-dark-grey-rgb: 77, 77, 77;
    --clr-extra-dark-grey: #202020;
    --clr-extra-dark-grey-rgb: 32, 32, 32;
    --clr-dark-blue: #060922;
    --clr-dark-blue-rgb: 6, 9, 34;
    --clr-semi-dark-blue: #000531;
    --clr-semi-dark-blue-rgb: 0, 5, 49;
    --clr-danger: #fc0000;
    --clr-danger-rgb: 252, 0, 0;
    --clr-success: #217234;
    --clr-success-rgb: 33, 114, 52;
    --clr-warning: #9b6a01;
    --clr-warning-rgb: 155, 106, 1;
    --ltr-main-font-f: "Jost", "sans-serif";
    --rtl-main-font-f: "Tajawal", "sans-serif";
  }

/* Reset and Base Styles 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
*/
/* Form Container */
.contact-form-wrapper {
    background: var(--clr-white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(var(--clr-black-rgb), 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    animation: slideIn 0.4s ease-out;
    margin:20px auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-family: var(--ltr-main-font-f);
    text-align: center;
    color: var(--clr-black);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Stepper Styles */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--clr-grey);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step:first-child {
    align-items: flex-start;
}

.step:last-child {
    align-items: flex-end;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-grey);
    color: var(--clr-semi-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--clr-button);
    color: var(--clr-white);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--clr-button-active);
    color: var(--clr-main);
}

.step-label {
    font-size: 12px;
    color: var(--clr-semi-dark);
    text-align: center;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--clr-button);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Fields */
.form-field {
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    color: var(--clr-black);
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: var(--clr-danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--clr-semi-dark);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--clr-white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-button);
    box-shadow: 0 0 0 3px rgba(var(--clr-button-rgb), 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select[multiple] {
    padding: 8px;
}

.help-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--clr-semi-dark);
}

/* Range Sliders */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--clr-grey);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-button);
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--clr-button-hover);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-button);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--clr-button-hover);
}

.slider-value {
    float: right;
    color: var(--clr-button);
    font-weight: 600;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Checkbox */
.checkbox-field label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
}

input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-grey);
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--clr-button);
    color: var(--clr-white);
    margin-left: auto;
}

.btn-primary:hover {
    background: var(--clr-button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--clr-button-hover-rgb), 0.4);
}

.btn-secondary {
    background: var(--clr-grey);
    color: var(--clr-black);
}

.btn-secondary:hover {
    background: var(--clr-semi-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--clr-semi-dark-rgb), 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 24px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stepper {
        flex-direction: column;
        gap: 12px;
    }

    .stepper::before {
        display: none;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
    }

    .step-number {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}
