/* ==============================================
   BASE STYLES - Reset & Global Elements
   ============================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background:
        radial-gradient(1200px 600px at 8% -10%, rgba(234, 148, 54, 0.10), transparent 65%),
        var(--bg-page);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--brand-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, textarea, select, button {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
}

input, textarea, select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    outline: none;
    direction: rtl;
}

input:focus, textarea:focus, select:focus {
    border-color: rgba(234, 148, 54, 0.55);
    box-shadow: 0 0 0 3px rgba(234, 148, 54, 0.12);
}

input[readonly]:not([id="quote-prepared-by"]) {
    background: var(--bg-page);
    color: var(--text-muted);
    cursor: default;
    border-style: dashed;
}

input[readonly]:not([id="quote-prepared-by"]):focus {
    border-color: var(--border-color);
    box-shadow: none;
}

textarea {
    resize: vertical;
    min-height: 96px;
}

label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group:has(input[required]) label::after,
.form-group:has(select[required]) label::after {
    content: ' *';
    color: #ef4444;
}

::placeholder {
    color: var(--text-muted);
}

::selection {
    background: rgba(234, 148, 54, 0.18);
    color: #0f172a;
}
