/***********************************************
    Variables
************************************************/
:root {
    --color-body-bg: f9f9f9;
    --color-mobile-container-bg: fff;
    --color-white: #fff;
    --color-black: #000;
    --color-primary: #6121a7;
    --color-light: #d5d8fb;
    --color-dark: #2a2839;
    --color-error: #e32;
    --color-android: #A4C639;
    --color-orange: #F8590E;
    --color-hightlight: #ED502E;
    --color-alert-bg: #F4A700;
    --radius: 8px;
    /*--color-whatsapp: #075e54;
    --color-green: #A4C63955;
    */
    --color-jbtn: #3F51AD;
    --color-jbtn-hover: #252560;
    --color-jbtn-active: #3F51AD;
}


html, body {
    background-color: var(--color-body-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

/* ===== Containers ===== */

.mobile-container {
    width: 430px;
    min-height: 100vh;
    background-color: var(--color-mobile-container-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

/* ===== Image/Logo ===== */

.cloud-png {
    position: absolute;
    width: 430px;
    aspect-ratio: auto;
    padding: 0px;
    top: 0px;
    left: 0px;
    z-index: 0;
    opacity: 0.9;
}

.logo-img {
    position: absolute;
    top: 15rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 180px;
    width: 180px;
    display: inline-block;
    z-index: 1;
    opacity: 1 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

/* Media Query Part */
@media (max-width: 440px) {
    html, body, .mobile-container {
        width: 100% !important;
        display: block;
    }
    .mobile-container {
        height: 100vh;
        border-radius: 0;
        padding: 20px 15px;
    }
}

main {
    position: absolute;
    top: 22rem;
    display: block;
    width: 100%;
    overflow-y: auto;
    max-height: calc(100% - 22rem);
    height: calc(100% - 22rem);
}

/* ===== بخش فرم ===== */
.form-section {
    padding-bottom: 30px;
    z-index: 2;
    width: 100%;
    margin-top: -120px; /* بالا بردن کل فرم به اندازه دو برابر ارتفاع تکست باکس */
}

.form-title {
    font-size: 24px;
    font-weight: bold;
    color: #0f8bab;
    text-align: center;
    margin-bottom: 60px; /* فاصله عنوان تا تکست باکس = ارتفاع دکمه */
}
/* برچسب شماره تلفن */
.form-label {
    margin-bottom: 6px;
    font-size: 18px;
    color: #0f8bab;
}
/* ===== تنظیمات ورودی گروه ===== */
.input-group {
    width: 100% !important;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ced4da;
    background-color: #fff;
    margin-bottom: 50px; /* فاصله تکست باکس تا دکمه = ارتفاع دکمه */
}

.input-group-text {
    background-color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .input-group-text i {
        font-size: 1.4rem;
        color: #0f8bab;
    }

.iform-control,
.iform-select {
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
    color: #6c757d;
    background-color: #ffffff;
    width: 100%;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 10px;
    border: none;
    padding: 14px 10px;
    font-size: 18px;
    text-align: center;
    color: #6c757d;
    direction: ltr;
    background-color: #fff;
    flex: 1;
    width: 100%;
    min-width: 0; /* جلوگیری از سرریز شدن */
}

    .form-control:focus {
        box-shadow: none;
        border-color: #0f8bab;
        outline: none;
    }

    .form-control::placeholder {
        color: #6c757d;
        font-size: 14px;
    }
/* دکمه اصلی - بدون تغییر اندازه در hover */
.btn-submit {
    background-color: #0f8bab;
    border: 2px solid #0f8bab;
    padding: 11px 0;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #fff;
}

    .btn-submit:hover {
        background-color: #ffffff;
        color: #0f8bab;
        border: 2px solid #0f8bab;
    }

/* ===== Progress Steps ===== */
.progress-steps {
    position: relative;
    margin-bottom: 5px;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #0f8bab;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background-color: #0f8bab;
    border-color: #0f8bab;
}

.step-item.completed .step-circle {
    background-color: #0f8bab;
    border-color: #0f8bab;
}

.step-line {
    width: 60px;
    height: 1px;
    background-color: #0f8bab;
    margin: 0;
    flex-shrink: 1;
    transition: background-color 0.3s ease;
}

    .step-line.completed {
        background-color: #0f8bab;
    }

/* ===== Upload Box ===== */
.border-dashed {
    border-style: dashed !important;
}

.upload-box {
    min-height: 36px !important;
    transition: all 0.3s ease;
}

    .upload-box:hover {
        background-color: #e9ecef !important;
        border-color: #0a6b7a !important;
    }

        .upload-box:hover i {
            transform: scale(1.1);
        }

    .upload-box i {
        transition: transform 0.3s ease;
        font-size: 1.25rem !important;
    }

    .upload-box span {
        font-size: 11px !important;
    }


/*
        Map Styles
    */

.custom-marker-car {
    width: 42px;
    height: 42px;
    background: url("https://platform.neshan.org/panel/api/icon/download/211118.Oj5DXDXa") center/32px no-repeat;
    cursor: pointer;
}

.custom-marker-mosagaf {
    width: 42px;
    height: 42px;
    background: url("https://platform.neshan.org/panel/api/icon/download/301118.dAxOMNkd") center/32px no-repeat;
    cursor: pointer;
}

.custom-marker-vanet {
    width: 42px;
    height: 42px;
    background: url("https://platform.neshan.org/panel/api/icon/download/471123.K8qTbFbt") center/32px no-repeat;
    cursor: pointer;
}

.custom-marker-motocycle {
    width: 42px;
    height: 42px;
    background: url("https://platform.neshan.org/panel/api/icon/download/481117.8lVaEJRO") center/32px no-repeat;
    cursor: pointer;
}

.custom-marker-box {
    width: 42px;
    height: 42px;
    background: url("https://platform.neshan.org/panel/api/icon/download/521117.IWQJLBSj") center/32px no-repeat;
    cursor: pointer;
}

.custom-marker-start {
    width: 42px;
    height: 62px;
    background: url("https://platform.neshan.org/panel/api/icon/download/511058.QYH5PiFv") center/28px 38px no-repeat;
    cursor: pointer;
}

.custom-marker-end {
    width: 42px;
    height: 62px;
    background: url("https://platform.neshan.org/panel/api/icon/download/581058.v1h6A5VZ") center/28px 38px no-repeat;
    cursor: pointer;
}

.text-pasta {
    color: #0092b0 !important;
}