* {
    box-sizing: border-box;
    margin: 0;
}

/* BODY */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: #f3f4f6;

    direction: ltr;
    text-align: left;
}

/* NAVBAR */
.nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

.nav-btn {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: #0F4761; /* unified color */
    color: white;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 20px;
}

/* TOOL */
.tool-section {
    padding: 60px 20px;
}

.container {
    max-width: 700px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.drop-area {
    border: 2px dashed #2563eb;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    transition: 0.2s;
}

.drop-area:hover {
    background: #eef2ff;
}

select, input {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.stats {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.stat {
    flex: 1;
    background: #f1f5f9;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}

button {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

/* ========================= */
/* INSTRUCTIONS */
/* ========================= */

.instructions {
    background: #f9fafb;
    padding: 60px 20px;
    text-align: center;
}

.instructions h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #111827;
    font-weight: 600;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.step-box {
    background: white;
    padding: 30px 25px;
    text-align: left;
    border-right: 1px solid #e5e7eb;
    transition: 0.2s;
}

.step-box:last-child {
    border-right: none;
}

.step-box:hover {
    background: #f8fafc;
}

.icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.step-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111827;
}

.step-box p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

/* ========================= */
/* FOOTER (FINAL FIXED) */
/* ========================= */

.footer {
    background: #0F4761;
    color: white;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-col:first-child p {
    max-width: 400px;
}

.footer-col:nth-child(2) {
    text-align: center;
}

.footer-col:nth-child(3) {
    text-align: right;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin-left: 10px;
    font-size: 20px;
    text-decoration: none;
    color: white;
    transition: 0.2s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-box {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .step-box:last-child {
        border-bottom: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col:nth-child(3) {
        text-align: center;
    }
}

#preview {
    width: 100%;
    border-collapse: collapse;

    direction: rtl;        /* ✅ ADD THIS */
}

#preview td {
    border: 1px solid #93c5fd; /* lighter blue */
    padding: 10px;

    text-align: right;     /* ✅ ADD THIS */
}

.pricing-note {
    margin-top: 10px;
    color: #dc2626; /* red */
    font-size: 14px;
    text-align: center;
}