* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Readex Pro", sans-serif;
}

:root {
    --primaryColor: #31a342;
    --secondaryColor: #2d3633;
    --font-color: #2d3633;
    --bgColor: #ededed;
    --labelSize: clamp(1rem, 3vw, 1.3rem);
    --heading-size: clamp(1.2rem, 5vw, 2.4rem);
    --borderRadius: 6px;
}

.join-as-driver-container {
    padding: 0 3%;
    margin: 0 auto;
}

.textsh {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 400;
    color: #8c8c8c;
    margin-top: 16px;
    text-align: center;
}

.subsecr {
    width: 50%;
}

.join-as-partner-content,
.join-as-driver-content,
.join-as-worker-content,
.join-as-inv-content {
    /* background-image: url(../img/partner123.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;*/
    position: relative;

    height: 100%;
    width: 100%;
    display: flex;
    text-align: center;
    flex-direction: column;
    color: #fff;
    margin-top: 80px;
}
.join-as-partner-content img,
.join-as-driver-content img,
.join-as-worker-content img,
.join-as-inv-content img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.join-as-driver-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.join-as-driver-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    /* تعيين العرض ليكون 80% */
    margin: 0 auto;
    /* توسيط العنصر أفقيًا */
}

.join-as-driver-form1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 90%;
    /* تعيين العرض ليكون 80% */
    margin: 0 auto;
    /* توسيط العنصر أفقيًا */
}

.join-as-driver-form-title h1 {
    color: var(--font-color, #2d3633);
    text-align: center;
    font-size: var(--heading-size);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.main-form {
    width: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 1rem;
}

.main-form-description {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3e3e3;
}

.main-form-description p {
    color: var(--primary-500, #31a342);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.field-group-items {
    display: flex;
    width: 100%;
    gap: 1rem;
    margin: 1rem;
}

.field-group-name,
.field-group-family,
.field-group-email,
.field-group-driver,
.field-group-erea,
.field-group-car,
.field-group-id,
.field-group-id-num {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 50%;
}

.field-group-items label {
    color: var(--font-color, #2d3633);
    text-align: auto;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding-top: 7px;
}

/* .field-group-name input,
.field-group-family input,
.field-group-email input,
.field-group-driver select,
.field-group-erea input,
.field-group-car select,
.field-group-id select,
.field-group-id-num input {
    display: flex;
    width: 95%;
    padding: 10px 8px;
    align-items: center;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    border: none;
    outline: none;
    cursor: pointer;
} */

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
.select-wrapper select:focus {
    box-shadow: 0 0 5px rgba(40, 167, 70, 0.534);
}

.select-warpper {
    width: 100%;
}

select option {
    color: #a8a8a8;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 5px !important;
}

.driver-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 2rem;
}

.form-upload {
    display: flex;
    width: 98%;
    padding: 1.6rem 1.6rem;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem;
    border-radius: 8px;
    border: 1px dashed #c6c6c6;
}

.form-upload input[type="file"] {
    display: none;
}

.form-upload label {
    width: 306px;
    color: #c6c6c6;
    text-align: center;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.22px;
    cursor: pointer;
}

.extra-info {
    padding: 1rem 0rem;
    border-bottom: 1px solid #e3e3e3;
}

.extra-info h3 {
    color: var(--primaryColor, #31a342);
    text-align: auto;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.form-agreement {
    margin-top: 1rem;
    text-align: auto;
    display: flex;
    align-items: center;
}

.form-agreement input {
    width: 18px;
    height: 18px;
    border: 1px solid #31a342;
}

.form-agreement input[type="checkbox"] {
    appearance: none;
    transform: scale(1);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

.form-agreement input[type="checkbox"]::before {
    position: absolute;
    content: "\2713";
    font-size: 1rem;
    line-height: 1rem;
    color: var(--primaryColor);
    transform: scale(0);
    transition: 0.3s all ease-in-out;
}

.form-agreement input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.form-agreement input[type="checkbox"]:checked {
    background-color: #fff;
}

.form-agreement label {
    color: var(--font-color, #2d3633);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-right: 0.5rem;
}

.form-agreement label span {
    color: #28a745;
    cursor: pointer;
}

.form-agreement label span:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: left;
    align-items: flex-end;
    width: 100%;
    padding: 1.6rem 1.1rem;
    gap: 1rem;
}

.form-actions button {
    width: 15%;
    padding: 10px;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 8px;
    outline: none;
}

.btn-submit {
    background: #31a342 !important;
    color: #fff !important;
    border: none !important;
}

.btn-reset {
    color: var(--font-color) !important;
    background: #fff !important;
    border: 1px solid rgb(90, 89, 89) !important;
}

.benefits-title h3 {
    color: var(--font-color, #2d3633);
    text-align: center;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.benefits-title h3 span {
    color: var(--primaryColor);
}

.join-as-driver-form-title h1 span {
    color: var(--primaryColor);
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 150px;
}

.benefit-item {
    width: 550px;
    height: 515px;
    border-radius: 16px;
    background: #ededed;
    margin: auto;
    overflow: hidden;
}

.benefit-item img {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 65%;
}

.benefit-item-description {
    padding: 2.2rem;
}

.benefit-item-description h3 {
    color: var(--primaryColor);
    font-size: 1.25rem;
    text-align: auto;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.benefit-item-description p {
    margin-top: 1.2rem;
    color: var(--secondaryColor);
    text-align: auto;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

input.error-border,
select.error-border {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply Animations */
.join-as-driver-content {
    animation: fadeIn 3s ease-in-out;
}

.right {
    animation: slideRight 1s ease-in-out;
}

.left {
    animation: slideLeft 1s ease-in-out;
}

.join-as-driver-main-content {
    animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */

/* Tablet (481px - 768px) */
@media (max-width: 768px) {
    .join-as-driver-form {
        width: 95%;
    }
    .join-as-driver-container {
        padding: 0 2%;
    }

    .join-as-driver-content {
        min-height: 500px;
        padding: 1.5rem;
        margin-top: 60px;
    }

    .join-as-driver-main-content {
        gap: 30px;
        margin-top: 50px;
    }

    .join-as-driver-form-title h1 {
        font-size: clamp(1rem, 4vw, 2rem);
    }

    .main-form {
        padding: 0.8rem;
    }

    .main-form-description p {
        font-size: 1rem;
    }

    .field-group-items {
        gap: 0.8rem;
        margin: 0.8rem;
    }

    .field-group-items label {
        font-size: 1rem;
    }

    .field-group-name input,
    .field-group-family input,
    .field-group-email input,
    .field-group-driver select,
    .field-group-erea input,
    .field-group-car select,
    .field-group-id select,
    .field-group-id-num input {
        padding: 8px 8px 8px 8px;
        width: 90% !important;
    }

    .select-warpper select {
        padding: 8px 8px 8px 8px;
    }

    .form-upload {
        padding: 1rem;
    }

    .form-upload label {
        width: 100%;
        font-size: 0.8rem;
    }

    .form-agreement label {
        font-size: 0.6rem;
    }

    .form-actions {
        padding: 1rem;
        gap: 0.8rem;
    }

    .form-actions button {
        width: 25%;
        padding: 8px;
        font-size: 0.7rem;
    }

    .benefits-title h2 {
        font-size: clamp(1rem, 4vw, 2rem);
    }

    .benefits-list {
        flex-direction: column;

        gap: 2rem;
    }

    .benefit-item {
        width: 100%;

        height: auto;
    }

    .benefit-item-description {
        padding: 1.5rem;
    }

    .benefit-item-description h3 {
        font-size: 1rem;
    }

    .benefit-item-description p {
        font-size: 0.9rem;
        line-height: 1.3rem;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .join-as-driver-container {
        padding: 0 1%;
    }

    .join-as-driver-content {
        min-height: 400px;
        padding: 1rem;
        margin-top: 40px;
    }

    .join-as-driver-main-content {
        gap: 20px;
        margin-top: 40px;
    }

    .join-as-driver-form-title h1 {
        font-size: clamp(0.9rem, 3.5vw, 1.8rem);
    }

    .main-form {
        padding: 0.5rem;
    }

    .main-form-description {
        padding: 0.8rem;
    }

    .main-form-description p {
        font-size: 0.9rem;
    }

    .field-group-items {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.5rem;
    }

    .field-group-items label {
        font-size: 0.9rem;
    }

    .field-group-name input,
    .field-group-family input,
    .field-group-email input,
    .field-group-driver select,
    .field-group-erea input,
    .field-group-car select,
    .field-group-id select,
    .field-group-id-num input {
        padding: 6px 6px 6px 6px;
        font-size: 0.9rem;
        width: 90%;
    }

    .field-group-name,
    .field-group-family,
    .field-group-email,
    .field-group-driver,
    .field-group-erea,
    .field-group-car,
    .field-group-id,
    .field-group-id-num {
        width: 100%;
    }

    input::placeholder {
        font-size: 0.9rem;
    }

    .select-warpper select {
        padding: 6px 6px 6px 6px;
        font-size: 0.9rem;
    }

    select option {
        font-size: 0.9rem;
    }

    .form-upload {
        padding: 0.8rem;
        margin: 0;
    }

    .form-upload label {
        font-size: 0.7rem;
        width: 100%;
    }

    .extra-info h3 {
        font-size: 1rem;
    }

    .form-agreement {
        margin-top: 0.8rem;
    }

    .form-agreement input {
        width: 16px;
        height: 16px;
    }

    .form-agreement label {
        font-size: 0.55rem;
        margin-right: 0.4rem;
    }

    .form-actions {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .form-actions button {
        width: 100%;
        padding: 10px;
        font-size: 0.8rem;
    }

    .benefits-title h2 {
        font-size: clamp(0.9rem, 3.5vw, 1.8rem);
    }

    .benefits-list {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .benefit-item {
        width: 100%;
        height: auto;
    }

    .benefit-item-description {
        padding: 1rem;
    }

    .benefit-item-description h3 {
        font-size: 0.9rem;
    }

    .benefit-item-description p {
        font-size: 0.8rem;
        line-height: 1.2rem;
        margin-top: 0.8rem;
    }
}

.container1 {
    position: relative;
    /* لجعل الموقع يعتمد على العنصر الحاوي */
    width: 100%;
    margin: auto;
    border: 2px solid #31a342;
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 10px;
}

.logo1 {
    position: absolute;

    width: 50.13px;
    height: auto;
}

.contai {
    width: 70%;
    margin: auto;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 50px;
}

/* .features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
} */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px 20px;
}

@media (min-width: 1300px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
        /* 4 عناصر دائمًا في الشاشات الكبيرة */
    }
}

/* .feature {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature img {

    height: auto;
    margin-bottom: 10px;
}

.feature h3 {
    color: #31A342;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 10px;
}

.feature p {
    width: 70%;
    color: #000000;
    text-align: center;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 10px;
} */
.feature {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    min-height: 250px;
    /* ارتفاع ثابت للعناصر */
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.feature h3 {
    color: #31a342;
    font-size: 1.1rem;
    margin: 10px 0;
    text-align: center;
}

.feature p {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    padding: 0 10px;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .contai {
        width: 100%;
    }
    .features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 30px 10px 10px;
    }

    .feature {
        min-height: 200px;
        padding: 10px;
    }

    .feature img {
        width: 50px;
        height: 50px;
    }

    .feature h3 {
        font-size: 1rem;
    }

    .feature p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container1 {
        margin-top: 40px;
        border-radius: 8px;
    }

    .features {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .feature {
        min-height: auto;
        padding: 20px;
    }
}

.subscription {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
}

.subscription button {
    margin-left: 10px;
}

.subscription h2 {
    color: var(--font-color, #2d3633);
    text-align: center;
    font-size: 31px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.subscription p {
    color: #b3b3b3;
    width: 70%;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 20px auto;
    margin-left: auto;
    /* توسيط العنصر أفقيًا */
    margin-right: auto;
    /* توسيط العنصر أفقيًا */
    margin-bottom: 20px;
}
.subscription .input-field {
    padding: 10px 10px;
}
.subscription .input-field::placeholder {
    font-size: 16px;
}

.addbutton {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.subbutton {
    background: #4caf50;
    color: white;
    padding: 10px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.custom-textarea {
    width: 95%;
    /* تحديد العرض */
    height: 107px;
    /* تحديد الارتفاع */
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: none;
    /* منع تغيير الحجم */
    font-size: 16px;
}

.imageinvestment {
    padding: 2rem;
    border: 2px solid #31a342;
    border-radius: 10px;
}
.imageinvestment img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.textkaidha {
    color: var(--font-color, #2d3633);
    width: 90%;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 100px;
    margin-left: auto;
    /* توسيط العنصر أفقيًا */
    margin-right: auto;
    /* توسيط العنصر أفقيًا */
    margin-bottom: 20px;
}

.textkaidha span {
    color: #28a745;
}

.form-grid {
    /* display: grid;
    grid-template-columns: repeat(4, 1fr); */
    /* 4 أعمدة افتراضيًا */
    gap: 16px;
    /* المسافة بين الحقول */
}

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* يصبح عمودين */
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        /* يصبح عمودًا واحدًا */
    }
}

.styleform {
    width: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    overflow: hidden;
    /* يمنع خروج المحتوى */
}

.input-groupp label {
    padding: 10px 0;
    color: var(--font-color, #2d3633);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: none;
}

.input-groupp input,
.input-groupp select {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.main-form-description1,
.main-form-description2 {
    margin-bottom: 10px;
    padding: 1rem 0;
    border-bottom: 1px solid #e3e3e3;
}
.main-form-description2 {
    border-top: 1px solid #e3e3e3;
}

.main-form-description1 p,
.main-form-description2 p {
    color: var(--primary-500, #31a342);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.full-width {
    grid-column: span 4;
    /* يمتد على عرض 4 أعمدة */
    width: 70%;
}

.full-width1 {
    grid-column: span 4;
    /* يمتد على عرض 4 أعمدة */
    width: 100%;
}

.half-width {
    grid-column: span 2;
    /* يمتد على عرض 4 أعمدة */
    width: 100%;
}

.input-groupp label span {
    color: #28a745;
}

.half-width input,
.input-groupp select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.half-width label {
    color: var(--font-color, #2d3633);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding-bottom: 20px;
}

.removebutton {
    background: #bc7620;
    color: white;
    border: none;
    border-radius: 5px;
    width: 20%;
    height: 50%;
    margin-top: 35px;
}
