/* ── AMP Warranty Form CSS v2 ─────────────────────────────────────────── */

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

.amp-wf-wrap {
    max-width: 640px;
    margin: 24px auto 60px;
    font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
    color: #333;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.amp-wf-header {
    background: linear-gradient(135deg, #1a2e44 0%, #2d4f73 100%);
    color: #fff;
    padding: 30px 32px 26px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}
.amp-wf-shield {
    font-size: 52px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.amp-wf-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}
.amp-wf-header p {
    margin: 0;
    font-size: 14px;
    opacity: .8;
    line-height: 1.5;
}
.amp-wf-header strong { color: #ffd54f; }

/* ── Form body ───────────────────────────────────────────────────────────── */
.amp-wf-form {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 28px 32px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* ── Errors ─────────────────────────────────────────────────────────────── */
.amp-wf-errors {
    background: #fff0f0;
    border: 1.5px solid #e63946;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: #b00020;
    margin-bottom: 14px;
}
.amp-wf-errors ul { margin: 8px 0 0 18px; padding: 0; }
.amp-wf-errors li { margin-bottom: 3px; }

/* ── Section ─────────────────────────────────────────────────────────────── */
.amp-wf-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed #e0e6ef;
}
.amp-wf-section:last-of-type { border-bottom: none; }

.amp-wf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a2e44;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 18px;
}
.amp-wf-step {
    background: #1a2e44;
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Row ─────────────────────────────────────────────────────────────────── */
.amp-wf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .amp-wf-row { grid-template-columns: 1fr; }
    .amp-wf-form { padding: 20px 18px 24px; }
}

/* ── Field ───────────────────────────────────────────────────────────────── */
.amp-wf-field {
    margin-bottom: 16px;
}
.amp-wf-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.amp-wf-field label em {
    color: #e63946;
    font-style: normal;
    font-size: 14px;
}
.amp-wf-field input[type="text"],
.amp-wf-field input[type="tel"],
.amp-wf-field input[type="email"],
.amp-wf-field input[type="date"],
.amp-wf-field select,
.amp-wf-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d0dae6;
    border-radius: 7px;
    font-size: 14px;
    color: #222;
    background: #fafbfc;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
}
.amp-wf-field input:focus,
.amp-wf-field select:focus,
.amp-wf-field textarea:focus {
    outline: none;
    border-color: #1a2e44;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,46,68,.1);
}
.amp-wf-field select { cursor: pointer; }

.amp-wf-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    line-height: 1.4;
}

/* Date hint — turns red/green based on JS */
#dateHint.amp-date-ok   { color: #2e7d32; font-weight: 600; }
#dateHint.amp-date-warn { color: #e63946; font-weight: 600; }

/* ── Upload zone ─────────────────────────────────────────────────────────── */
.amp-wf-upload {
    position: relative;
    border: 2px dashed #b0c4de;
    border-radius: 10px;
    background: #f5f8ff;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amp-wf-upload:hover,
.amp-wf-upload.drag-over { border-color: #1a2e44; background: #eaf0f9; }
.amp-wf-upload input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer;
    width: 100%; height: 100%;
}
.amp-wf-upload-inner { pointer-events: none; padding: 16px; }
.amp-wf-upload-icon  { font-size: 30px; margin-bottom: 6px; }
.amp-wf-upload-text  { font-size: 14px; font-weight: 600; color: #445; margin-bottom: 3px; }
.amp-wf-upload-hint  { font-size: 12px; color: #888; }

/* File preview (shown after file selected) */
.amp-wf-upload-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #2e7d32;
    width: calc(100% - 4px);
    margin: 2px;
}
.amp-wf-file-icon { font-size: 20px; }
.amp-wf-upload-preview span:nth-child(2) { flex: 1; word-break: break-all; font-weight: 600; }
.amp-wf-remove-file {
    background: none; border: none;
    color: #e63946; font-size: 16px;
    cursor: pointer; padding: 0 4px;
    line-height: 1; flex-shrink: 0;
}

/* ── Confirm checkbox ────────────────────────────────────────────────────── */
.amp-wf-confirm {
    background: #f4f7fb;
    border: 1px solid #d0dae6;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.amp-wf-confirm label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}
.amp-wf-confirm input[type="checkbox"] {
    width: 17px; height: 17px;
    flex-shrink: 0; margin-top: 2px; cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.amp-wf-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e63946, #c0392b);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: .2px;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 4px 14px rgba(230,57,70,.35);
}
.amp-wf-submit:hover  { opacity: .92; }
.amp-wf-submit:active { transform: scale(.99); }
.amp-wf-submit:disabled { opacity: .55; cursor: not-allowed; }
