/* ============================================================
   COMMON STYLES — Shared between index.php and config.php
   ============================================================ */

/* Gujarati font for canvas text shaping (PDF generation) */
@font-face {
    font-family: 'NotoSansGujarati';
    src: url('../fonts/NotoSansGujarati-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'NotoSansGujarati';
    src: url('../fonts/NotoSansGujarati-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

:root {
    /* --primary-dark: #231f20; 
    --primary-dark-light: #231f2096; */
    --primary-dark: #3a3536bf;
    --primary-dark-light: #3a353696;
    --accent: #f15a29;
    --accent-light: #f99d3e;
    --accent-warm: #f47929;
    --accent-dim: rgba(241, 90, 41, 0.10);
    --bg: #f8f8f8;
    --bg-alt: #e6e7e8;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #bcbec0;
    --white: #ffffff;
    --red: #c0392b;
    --green: #27ae60;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--primary-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--accent);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-logo {
    font-family: 'Jost', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}
.header-logo-img {
    height: 38px;
    width: auto;
}
.header-title {
    font-family: 'Jost', sans-serif;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Main */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
}

/* Sections */
.section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.section-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-light) 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-number,
.section-icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.section-title {
    font-family: 'Jost', sans-serif;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
}
.section-body {
    padding: 24px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row:last-child { margin-bottom: 0; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-row.four-col { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-row.full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--primary-dark-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group input::placeholder { color: #b0b0b0; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .help {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.input-prefix {
    position: relative;
}
.input-prefix::before {
    content: '\20B9';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    pointer-events: none;
}
.input-prefix input {
    padding-left: 30px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Validation */
.form-group.error input,
.form-group.error select {
    border-color: var(--red);
}
.error-msg {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .main { padding: 16px; }
    .form-row, .form-row.three-col, .form-row.four-col { grid-template-columns: 1fr; }
    .header-inner { padding: 12px 16px; }
    .header-logo { font-size: 1.4rem; }
    .header-title { font-size: 0.95rem; }
    .header-tagline { display: none; }
}
