﻿@font-face {
    font-family: 'Yekan';
    src: url('/data/Yekan.ttf') format('truetype');
}

html, body {
    font-family: 'Yekan', tahoma, sans-serif;
    background-color: #ffffff !important;
    color-scheme: light;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

/* جلوگیری از dark mode سیستم */
@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #ffffff !important;
        color: #000;
    }
}

.btn {
    font-family: 'Yekan', tahoma, sans-serif;
    font-size: 16px;
    padding: 10px 18px;
    background: #00c853;
    color: white;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
}

.back-btn {
    padding: 10px 18px;
    background: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

.btn-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 15px;
}

    .form-row label {
        width: 300px;
        font-weight: bold;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

/* فرم اصلی */
.contact-form-container {
    background-color: #ffffff !important;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 700px;
    width: 100%;
    color: #000;
}

.upload-row {
    display: grid;
    grid-template-columns: 33.33% 33.33% 33.33%;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

    .upload-row .col {
        display: flex;
        align-items: center;
    }

    .upload-row .right {
        justify-content: flex-end;
    }

    .upload-row .center {
        justify-content: center;
    }

    .upload-row .left {
        justify-content: flex-start;
    }

    .upload-row progress {
        width: 100%;
        height: 18px;
        display: none;
    }

@media (max-width: 768px) {
    .upload-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

#status {
    font-weight: bold;
    color: green;
    white-space: nowrap;
}

progress {
    appearance: none;
    border-radius: 10px;
    overflow: hidden;
}

    progress::-webkit-progress-bar {
        background: #eee;
        border-radius: 10px;
    }

    progress::-webkit-progress-value {
        background: #00c853;
        border-radius: 10px;
    }

h2 {
    text-align: center;
}

h3 {
    color: #28a745;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

@import url('https://fonts.googleapis.com/css2?family=Work+Sans&display=swap');

/* Dropzone */
.dropbox-zone {
    border-radius: 2rem;
    background-color: #fff;
    padding: 2rem;
    box-shadow: rgba(0,0,0,0.1) 0px 8px 24px;
    max-width: 100%;
}

.droparea-zone {
    padding: 1rem;
    position: relative;
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 2px dashed #483EA8;
    border-radius: 1rem;
    cursor: pointer;
    background-color: #fff;
}

    .droparea-zone input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
    }

.dropover-zone {
    border-style: solid;
    background-color: #F8F8FF;
}

.success {
    border-color: #00c853;
    background: #e8ffe8;
}

.message {
    margin-top: 10px;
}
