/* ─────────────────────────────
   Font & RTL Base
   ───────────────────────────── */
@font-face {
    font-family: "IranSans";
    src: url("./asset/font/IRANSansWeb.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



input::placeholder,
textarea::placeholder {
    font-family: "IranSans", "Segoe UI", Tahoma, sans-serif;
    font-size: 14px;
    color: #777;
}

/* ─────────────────────────────
   Converter Wrapper
   ───────────────────────────── */
.converter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    /* بک‌گراند از style.css می‌آید */
}

/* ─────────────────────────────
   FAQ Section
   ───────────────────────────── */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
}

.faq-title {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: left;
}

.faq-container details {
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
    border: 1px solid #ddd;
}

.faq-container summary {
    font-size: 18px;
    font-weight: 600;
}

.faq-container p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* ─────────────────────────────
   Converter Card
   ───────────────────────────── */
.converter-container {
    background: rgba(210, 221, 235, 0.05);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
}

.converter-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: inherit;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Form Row */
.converter-row {
    display: flex;
    gap: 16px;
}

.converter-row .form-group {
    flex: 1;
}

/* Convert Button */
.convert-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color, #6060ff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    margin-top: 10px;
}

.convert-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Result Box */
.result-box {
    margin-top: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    display: none;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
}

.result-label {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ─────────────────────────────
   Mobile
   ───────────────────────────── */
@media (max-width: 480px) {
    .converter-row {
        flex-direction: column;
    }
    .converter-container {
        padding: 24px;
    }
}
