/* Components: store registration modal, forms, and alerts. */

/* استایل‌های جدید برای مودال ثبت فروشگاه */
#storeModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    animation: slideUp 0.3s;
}

#storeModal.account-route-page {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 100vh;
    height: auto;
    z-index: auto;
    overflow: visible;
    animation: none;
    background-color: var(--light-gray);
}

#storeModal .fullscreen-modal-content {
    /* Keep registration content below sticky glass header */
    padding: 30px 20px 20px !important;
    overflow-y: auto;
    height: calc(100% - 60px);
    margin-top: 0 !important;
    background: var(--white) !important;
}

#storeModal.account-route-page .fullscreen-modal-content {
    min-height: calc(100vh - 60px);
    height: auto;
    overflow: visible;
}

.store-register-panel {
    min-width: 0;
}

.store-register-intro {
    text-align: center;
    margin: 8px 0 18px;
}

.store-register-intro h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #1f2a37;
}

.store-register-intro p {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.store-register-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.store-type-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    text-align: right;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    background: linear-gradient(140deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    touch-action: manipulation;
}

.store-type-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
    pointer-events: none;
}

.store-type-button {
    width: 100%;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-type-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: #93c5fd;
}

.store-type-button:active {
    transform: scale(0.99);
}

.store-type-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.regular-store-card-content {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
    text-align: center;
}

.regular-store-card-content i {
    font-size: 3rem;
}

.regular-store-card-content strong {
    font-size: 1.45rem;
}

.regular-store-card-content small {
    font-size: 0.9rem;
}

/* استایل برای باکس هشدار */
.warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-right: 4px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.warning-icon {
    color: #ffc107;
    font-size: 1.5rem;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-text h4 {
    margin: 0 0 8px 0;
    color: #e6a800;
    font-size: 1rem;
}

.warning-text p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* استایل برای فرم */
.store-form-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 25px;
    padding: 0 10px;
}

.form-section-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.form-section-title i {
    margin-left: 10px;
    color: #2196F3;
}

.input-with-icon, .select-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.input-with-icon input, .select-with-icon select {
    padding-right: 40px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 45px;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.store-url-error {
    display: block;
    margin-top: 5px;
    color: #b91c1c;
    font-size: 0.8rem;
    line-height: 1.6;
}

.input-with-icon input[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* استایل برای بخش درخواست تماس */
.contact-request-box {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.contact-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.contact-status i {
    margin-left: 10px;
    color: #2196F3;
}

.contact-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #3d8b40;
}

.contact-btn i {
    margin-left: 8px;
}

/* استایل برای دکمه ثبت */
.submit-store-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-store-btn:hover {
    background-color: #0b7dda;
}

@media (min-width: 640px) {
    .store-register-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .store-type-card {
        min-height: 130px;
    }

    .store-type-image {
        min-height: 130px;
    }
}


.submit-store-btn i {
    margin-left: 10px;
}

/* استایل برای باکس قوانین */
.terms-box {
    display: flex;
    align-items: center;
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border-right: 4px solid #2196F3;
}

.terms-icon {
    color: #2196F3;
    font-size: 1.2rem;
    margin-left: 15px;
}

.terms-text {
    font-size: 0.85rem;
    color: #555;
}

.terms-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
}

.terms-link:hover {
    text-decoration: underline;
}
