/* ============================================================
   Eclam Garansi Sena – Public / Frontend Styles
   ============================================================ */

/* ── Container ── */
.eclam-public-wrap,
.eclam-landing-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* ── Form Card ── */
.eclam-form-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 32px 36px;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .eclam-form-card { padding: 20px 16px; }
}

.eclam-form-title {
    font-size: 22px;
    margin: 0 0 6px;
    line-height: 1.3;
}
.eclam-form-sub {
    color: #666;
    margin: 0 0 16px;
    font-size: 14px;
}

/* ── Public Form ── */
.eclam-public-form {
    margin-top: 20px;
}
.eclam-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.eclam-form-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.eclam-form-group label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}
.eclam-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    width: 100%;
}
.eclam-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .12);
}
.eclam-input.has-error {
    border-color: #e53935;
}

/* ── Buttons ── */
.eclam-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.eclam-btn-primary {
    background: #2196F3;
    color: #fff !important;
}
.eclam-btn-primary:hover {
    background: #1976D2;
    color: #fff;
}
.eclam-btn-secondary {
    background: #fff;
    color: #2196F3;
    border: 2px solid #2196F3;
}
.eclam-btn-secondary:hover {
    background: #e3f2fd;
}
.eclam-btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}
.eclam-btn-lg {
    padding: 13px 32px;
    font-size: 16px;
}
.eclam-btn:disabled {
    opacity: .6;
    pointer-events: none;
}

/* ── Alerts ── */
.eclam-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}
.eclam-alert-success {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #1b5e20;
}
.eclam-alert-error {
    background: #fce4ec;
    border-left: 4px solid #e53935;
    color: #b71c1c;
}
.eclam-alert-warning {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    color: #7a5f00;
}
.eclam-alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    color: #0d47a1;
}

/* ── Hero ── */
.eclam-hero {
    background: linear-gradient(135deg, #1565C0 0%, #2196F3 100%);
    border-radius: 10px;
    color: #fff;
    padding: 48px 40px;
    margin-bottom: 32px;
    text-align: center;
}
.eclam-hero h1 {
    font-size: 32px;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.eclam-hero p {
    font-size: 16px;
    opacity: .9;
    margin: 0 0 24px;
}
.eclam-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.eclam-hero .eclam-btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.15);
}
.eclam-hero .eclam-btn-secondary:hover {
    background: rgba(255,255,255,.25);
}

/* ── Feature cards ── */
.eclam-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.eclam-feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}
.eclam-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.eclam-feature-card h3 {
    margin: 16px 0 8px;
    font-size: 17px;
}
.eclam-feature-card p {
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── Steps ── */
.eclam-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.eclam-step {
    text-align: center;
    padding: 20px 16px;
}
.eclam-step-no {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2196F3;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.eclam-step h4 {
    margin: 0 0 6px;
    font-size: 15px;
}
.eclam-step p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

/* ── Section ── */
.eclam-section {
    margin-bottom: 32px;
}

/* ── Timeline (tracking) ── */
.eclam-timeline {
    position: relative;
    padding-left: 28px;
}
.eclam-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.eclam-timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #ebebeb;
}
.eclam-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2196F3;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2196F3;
}
.eclam-timeline-item .tl-status {
    font-weight: 700;
    font-size: 13px;
    color: #2196F3;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.eclam-timeline-item .tl-date {
    font-size: 12px;
    color: #999;
    float: right;
    margin-top: -20px;
}
.eclam-timeline-item .tl-desc {
    font-size: 13px;
    color: #444;
    margin: 4px 0 0;
}
.eclam-timeline-item .tl-pic {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* ── Track header info ── */
.eclam-track-header {
    background: #e3f2fd;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    border-left: 4px solid #2196F3;
}
.eclam-track-header strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

/* ── Garansi table ── */
.eclam-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.eclam-info-table th {
    background: #f5f5f5;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    white-space: nowrap;
}
.eclam-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebebeb;
}
.eclam-garansi-aktif   { color: #2e7d32; font-weight: 700; }
.eclam-garansi-expired { color: #c62828; font-weight: 700; }

/* ── Serial info hint ── */
.eclam-serial-info {
    margin-top: 6px;
    padding: 8px 10px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 12px;
    color: #2e7d32;
}

/* ── Panduan ── */
.eclam-panduan-section {
    margin-bottom: 28px;
}
.eclam-panduan-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1565C0;
}
.eclam-panduan-section ol {
    padding-left: 20px;
    line-height: 1.8;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .eclam-form-row { flex-direction: column; gap: 0; }
    .eclam-hero { padding: 32px 20px; }
    .eclam-hero h1 { font-size: 22px; }
    .eclam-info-table { display: block; overflow-x: auto; }
}
