@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&family=Sarabun:wght@400;500;600&display=swap');

:root {
    --bs-primary: #122840;
    --bs-primary-rgb: 18, 40, 64;
    --brand-red: #dc3545;
}

body {
    background: #f8fafc;
    font-family: 'Google Sans', 'Sarabun', sans-serif;
    color: #334155;
}

/* Shared card style */
.form-card, .instruction-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

.label-th {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.form-control, .form-select {
    border-color: #cbd5e1;
    border-radius: 0.625rem;
    padding: 0.55rem 0.875rem;
    font-size: 0.9rem;
    background-color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(18, 40, 64, 0.08);
}

/* Progress bar */
.progress-bar-custom { height: 6px; background: #e2e8f0; border-radius: 10px; margin-bottom: 30px; }
.progress-fill { height: 100%; width: 50%; background: var(--brand-red); border-radius: 10px; transition: 0.4s; }

/* Upload drop zone */
.upload-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-drop-zone:hover {
    border-color: var(--bs-primary);
    background-color: rgba(18, 40, 64, 0.02);
}

/* Sticky sidebar */
.side-sticky-box { position: sticky; top: 90px; }

/* Icon box for instruction cards */
.icon-box {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(18, 40, 64, 0.06);
    color: var(--bs-primary);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.lang-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* Buttons */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #122840;
    --bs-btn-border-color: #122840;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0e2135;
    --bs-btn-hover-border-color: #0e2135;
    border-radius: 10px;
    padding: 0.625rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(18, 40, 64, 0.12);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18, 40, 64, 0.25);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(18, 40, 64, 0.2) !important;
}

/* Review step */
.review-item { margin-bottom: 1rem; border-bottom: 1px solid #f0f0f0; padding-bottom: 5px; }
.review-label { font-size: 0.85rem; color: #666; font-weight: 600; }
.review-value { font-size: 1.05rem; color: #000; }


.form-check-input:checked {
    background-color: #122840;
    border-color: #122840;
}

.form-check-input:focus {
    border-color: #122840;
    box-shadow: 0 0 0 4px rgba(18, 40, 64, 0.08);
}

a {
    color: #122840;
}

a:hover {
    color: #0e2135;
}


.validation-summary-errors {
    background-color: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1rem;
}
