/* ============================
   RESET / BASE
   ============================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #e6edf5;
    color: #374151;
}

/* ============================
   LAYOUT
   ============================ */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ============================
   HEADER
   ============================ */

.header {
    text-align: center;
    margin-bottom: 36px;
}

.header h1 {
    margin: 0;
    font-size: 56px;
    font-family: "omnes-semicond", sans-serif;
    font-weight: 700;
    color: #021738;
}

.header p {
    margin-top: 10px;
    font-size: 18px;
    color: #628395;
}

/* ============================
   CARD
   ============================ */

.tool-card {
    background: #f5f3ef;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tool-card-large {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

/* ============================
   FORM
   ============================ */

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.form-group .required {
    color: #ef4444;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* ============================
   INPUTS
   ============================ */

input[type="text"],
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: "Nunito", system-ui, sans-serif;
    border-radius: 8px;
    border: 1px solid #c7d2e0;
    background: #ffffff;
    color: #1f2937;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ============================
   FILE DROP
   ============================ */

.file-drop {
    display: block;
    border: 2px dashed #c7d2e0;
    border-radius: 12px;
    padding: 28px 20px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop:hover {
    border-color: #3b82f6;
    background: #f1f5fb;
}

.file-drop-inner {
    text-align: center;
}

.file-drop-inner strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.file-drop-inner span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* ============================
   PRIMARY BUTTON
   ============================ */

button.primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 600;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

button.primary:hover {
    background: #2563eb;
}

/* ============================
   FORM FOOTER
   ============================ */

.form-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Back to tools – force neutral grey (no blue inheritance) */
.form-footer .back-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}

.form-footer .back-link:hover {
    text-decoration: underline;
    color: #6b7280;
}

/* Override full-width button ONLY in footer */
.form-footer button.primary {
    width: auto;
}

/* ============================
   RESULTS
   ============================ */

.result-divider {
    margin: 36px 0 28px;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.result-block {
    text-align: left;
}

.result-section {
    margin-bottom: 22px;
}

.result-section h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.result-text {
    margin: 0;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
}
