/* ============================================
   Transito Licensing Form — form.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --tlf-primary:   #1a3c5e;
    --tlf-accent:    #e8a020;
    --tlf-bg:        #f8f9fb;
    --tlf-white:     #ffffff;
    --tlf-border:    #dde3eb;
    --tlf-text:      #1e293b;
    --tlf-muted:     #64748b;
    --tlf-success:   #0f9d58;
    --tlf-radius:    10px;
    --tlf-shadow:    0 2px 12px rgba(0,0,0,.08);
}

.tlf-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 860px;
    margin: 0 auto;
    color: var(--tlf-text);
}

/* SECTION */
.tlf-section {
    display: flex;
    gap: 0;
    background: var(--tlf-white);
    border: 1px solid var(--tlf-border);
    border-radius: var(--tlf-radius);
    margin-bottom: 20px;
    box-shadow: var(--tlf-shadow);
    overflow: hidden;
}

.tlf-section-label {
    background: var(--tlf-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 14px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
}

.tlf-section--pengakuan .tlf-section-label {
    background: var(--tlf-accent);
    color: #fff;
}

.tlf-section-body {
    flex: 1;
    padding: 24px 28px;
}

.tlf-section-body h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tlf-primary);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tlf-accent);
    display: inline-block;
}

/* ROWS & FIELDS */
.tlf-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.tlf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    flex: 1;
    min-width: 180px;
}

.tlf-field--full {
    flex: 1 1 100%;
    min-width: 100%;
}

.tlf-field--sm {
    max-width: 120px;
    min-width: 100px;
    flex: 0 0 auto;
}

.tlf-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tlf-muted);
    margin-bottom: 6px;
}

.tlf-field .req {
    color: #e53e3e;
}

.tlf-field input[type="text"],
.tlf-field input[type="email"],
.tlf-field input[type="tel"],
.tlf-field input[type="number"],
.tlf-field select,
.tlf-field textarea {
    border: 1.5px solid var(--tlf-border);
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--tlf-text);
    background: #fdfdff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.tlf-field input:focus,
.tlf-field select:focus,
.tlf-field textarea:focus {
    border-color: var(--tlf-primary);
    box-shadow: 0 0 0 3px rgba(26,60,94,.1);
    background: #fff;
}

.tlf-field textarea {
    resize: vertical;
}

.tlf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* RADIO */
.tlf-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 4px 0;
}

.tlf-radio-group label {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--tlf-text) !important;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0 !important;
}

.tlf-radio-group input[type="radio"] {
    accent-color: var(--tlf-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* CHECKBOX */
.tlf-checkbox-label {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    align-items: flex-start;
}

.tlf-checkbox-label input[type="checkbox"] {
    accent-color: var(--tlf-primary);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* SUBMIT */
.tlf-submit-wrap {
    text-align: center;
    padding: 10px 0 30px;
}

.tlf-btn-submit {
    background: var(--tlf-primary);
    color: #fff;
    border: none;
    padding: 16px 52px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(26,60,94,.3);
}

.tlf-btn-submit:hover {
    background: #245080;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,60,94,.4);
}

.tlf-btn-submit:active {
    transform: translateY(0);
}

/* SUCCESS */
.tlf-success {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--tlf-white);
    border: 1px solid #c6f6d5;
    border-radius: var(--tlf-radius);
    padding: 50px 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: var(--tlf-shadow);
}

.tlf-success-icon {
    width: 64px;
    height: 64px;
    background: var(--tlf-success);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 20px;
}

.tlf-success h2 {
    color: var(--tlf-success);
    font-size: 24px;
    margin-bottom: 12px;
}

.tlf-success p {
    color: var(--tlf-muted);
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.tlf-btn-back {
    display: inline-block;
    margin-top: 20px;
    background: var(--tlf-primary);
    color: #fff;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}

.tlf-btn-back:hover {
    background: #245080;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .tlf-section { flex-direction: column; }
    .tlf-section-label {
        writing-mode: horizontal-tb;
        padding: 12px 20px;
        min-width: auto;
        font-size: 16px;
    }
    .tlf-section-body { padding: 18px 16px; }
    .tlf-row { flex-direction: column; gap: 0; }
    .tlf-field--sm { max-width: 100%; }
    .tlf-btn-submit { width: 100%; padding: 16px; }
}
