/* app-frame - ساختار پایه */
/* horizontal-menu - منو افقی */
/* section-title - عنوان هر بخش */
/* confirm-insurance - بخش فرم پذیرش درخوسات بیمه */

/* app-frame.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    height: 100%;
    display: block;
}

.app-header {
    flex-shrink: 0;  /* جلوگیری از کوچک شدن */
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 100;
}

.app-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.app-content {
    flex: 1;
    min-height: 0; /* خیلی مهم */
    overflow-y: auto;
    overflow-x: hidden;
}

.app-content::-webkit-scrollbar {
    width: 3px;
}

.app-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.app-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

@media (max-width: 480px) {
    body {
        background: white;
        display: block;
    }
    
    .app-frame {
        max-width: 100%;
        max-height: 100%;
        height: 100vh;
    }
}

@media (min-width: 481px) {
    body {
        background: #f8f8f8;
    }
    
    .app-frame {
        max-width: 430px;
        margin: 0 auto;
        box-shadow: none;
        border-radius: 0;
    }
}


/* horizontal-menu */

.horizontal-menu {
    position: relative;
    width: 100%;
    margin: 0px 0;
    padding-bottom: 12px;
}

.menu-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.menu-scroll::-webkit-scrollbar {
    height: 2px;
}

.menu-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.menu-items {
    display: flex;
    justify-content: flex-start;  
    gap: 0px;
    padding: 4px 0px 4px 4px;  
    min-width: max-content;
    transition: none;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100px; 
    flex-shrink: 0;
    background: transparent;  
    border: none;  
    padding: 0;  
    transition: none;
}

.menu-icon {
    width: 56px;
    height: 56px;
    background: #f2f2f2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: none;
}

.menu-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 480px) {
    .menu-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .menu-text {
        font-size: 11px;
    }
    
    .menu-items {
        gap: 0px;
    }

    .menu-scroll {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .menu-scroll::-webkit-scrollbar {
        display: none;
    }
}


/* section-title */

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px;
    margin-bottom: 4px;
}

.section-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border-radius: 50%;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}


/* confirm-insurance */
.confirm-insurance-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    margin: 16px;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.has-float-label {
    position: relative;
    display: block;
}

.has-float-label input {
    width: 100%;
    height: 55px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    padding: 16px 15px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.has-float-label input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.has-float-label span {
    position: absolute;
    right: 15px;
    top: 18px;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.has-float-label input:focus ~ span,
.has-float-label input:not(:placeholder-shown) ~ span {
    top: 8px;
    font-size: 11px;
    color: #007bff;
    background: white;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .confirm-insurance-card {
        margin: 12px;
        padding: 20px 16px;
    }
    
    .form-title {
        font-size: 20px;
    }
}

