:root {
--brand: #2b3179;
--brand-2: #4456bb;
--bg: #f4f7fc;
--card: #ffffff;
--text: #1f2a44;
--muted: #63708a;
--border: #d9e2f0;
--danger: #dc3545;
--success: #198754;
--shadow: 0 10px 30px rgba(25, 36, 70, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
}
.logodiv {
    width: 100%;
    text-align: center;
    margin: 30px 0px 20px 0px;
}

.logodiv img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.container {
width: min(1120px, calc(100% - 24px));
margin: 24px auto;
}

.form-card {
background: var(--card);
border-radius: 18px;
overflow: hidden;
box-shadow: var(--shadow);
}

.header {
background: linear-gradient(135deg, var(--brand), var(--brand-2));
color: #fff;
padding: 28px 22px;
}

.header h1 {
margin: 0 0 10px;
font-size: 2rem;
line-height: 1.2;
}

.header p {
margin: 0;
font-size: 1rem;
opacity: 0.96;
}

.legend {
margin-top: 16px;
padding: 14px;
border-radius: 12px;
background: rgba(255,255,255,0.14);
border: 1px solid rgba(255,255,255,0.15);
font-size: 0.95rem;
}

.body {
padding: 22px;
}

.note {
color: var(--muted);
font-size: 0.95rem;
margin-bottom: 18px;
}

.section-title {
margin: 28px 0 14px;
padding-bottom: 10px;
border-bottom: 2px solid #edf2fa;
color: var(--brand);
font-size: 1.12rem;
font-weight: 700;
}

.fields-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}

.field.full { grid-column: 1 / -1; }

label {
display: block;
margin-bottom: 7px;
font-weight: 600;
font-size: 0.96rem;
}

.required::after {
content: " *";
color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
width: 100%;
min-height: 46px;
border: 1px solid #cdd7e5;
border-radius: 10px;
padding: 11px 13px;
font-size: 0.96rem;
background: #fff;
}

textarea {
min-height: 190px;
resize: vertical;
}

.hint {
margin-top: 6px;
color: var(--muted);
font-size: 0.88rem;
}

.error {
display: none;
color: var(--danger);
font-size: 0.88rem;
margin-top: 6px;
}

.show-error { display: block; }

.is-invalid {
border-color: var(--danger) !important;
outline: none;
}

.desktop-ratings {
display: block;
}

.ratings-table-wrap {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border: 1px solid var(--border);
border-radius: 14px;
background: #fff;
}

table {
width: 100%;
min-width: 760px;
border-collapse: collapse;
}

th, td {
border: 1px solid var(--border);
padding: 10px 8px;
text-align: center;
vertical-align: middle;
font-size: 0.92rem;
}

thead th {
background: #eef3ff;
color: var(--brand);
font-weight: 700;
}

.skill-col {
min-width: 250px;
text-align: left;
background: #fbfcff;
font-weight: 600;
position: sticky;
left: 0;
z-index: 2;
}

thead .skill-col {
z-index: 3;
background: #eef3ff;
}

.radio-cell {
min-width: 54px;
}

.radio-cell input {
transform: scale(1.15);
cursor: pointer;
}

.section-error {
display: none;
color: var(--danger);
font-size: 0.88rem;
margin-top: 8px;
}

.mobile-ratings {
display: none;
}

.accordion {
display: grid;
gap: 12px;
}

.accordion-item {
border: 1px solid var(--border);
border-radius: 14px;
background: #fff;
overflow: hidden;
}

.accordion-trigger {
width: 100%;
border: none;
background: #fff;
color: var(--text);
padding: 16px 16px;
text-align: left;
font-size: 0.98rem;
font-weight: 700;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}

.accordion-trigger span:last-child {
color: var(--brand);
font-size: 1.1rem;
line-height: 1;
}

.accordion-panel {
display: none;
padding: 0 12px 12px;
background: #fbfcff;
border-top: 1px solid #edf2fa;
}

.accordion-item.active .accordion-panel {
display: block;
}

.accordion-item.active .accordion-trigger {
background: #f7f9fe;
}

.rating-card {
margin-top: 12px;
border: 1px solid #dce5f2;
border-radius: 12px;
background: #fff;
padding: 12px;
}

.rating-card-title {
font-size: 0.93rem;
font-weight: 700;
margin-bottom: 10px;
color: var(--text);
}

.rating-options {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 8px;
}

.rating-option {
position: relative;
}

.rating-option input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}

.rating-pill {
min-height: 44px;
border: 1px solid #cfd9e8;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
background: #fff;
color: var(--brand);
font-size: 0.92rem;
transition: .2s ease;
}

.rating-option input:checked + .rating-pill {
background: var(--brand);
color: #fff;
border-color: var(--brand);
}

.check-row {
display: flex;
gap: 10px;
align-items: flex-start;
margin-top: 10px;
}

.check-row input[type="checkbox"] {
margin-top: 4px;
transform: scale(1.1);
}

.captcha-box {
padding: 16px;
border: 1px dashed #bfcce0;
border-radius: 12px;
background: #fafcff;
color: var(--muted);
font-size: 0.94rem;
}

.signature-box {
border: 2px dashed #c8d3e4;
border-radius: 14px;
padding: 10px;
background: #fbfcff;
}

#signatureCanvas {
width: 100%;
height: 220px;
display: block;
background: #fff;
border: 1px solid #d8e0ed;
border-radius: 10px;
touch-action: none;
cursor: crosshair;
}

.actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 18px;
}

.btn {
border: none;
border-radius: 10px;
padding: 13px 22px;
font-size: 0.96rem;
font-weight: 700;
cursor: pointer;
}

.btn-primary {
background: var(--brand);
color: #fff;
}

.btn-secondary {
background: #fff;
color: var(--brand);
border: 1px solid var(--brand);
}

.message {
margin-top: 16px;
font-weight: 600;
font-size: 0.95rem;
}

.success { color: var(--success); }
.danger { color: var(--danger); }

.sticky-submit {
display: none;
}

.ms-thankyou-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #0d2b3a, #1e4d6b);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ms-thankyou-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 30px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: msFadeIn 0.6s ease;
}

@keyframes msFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ms-check {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-check svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.ms-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 10px;
}

.ms-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.ms-details {
    background: #f4f6fb;
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    color: #333;
    margin-bottom: 25px;
}

.ms-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #1e4d6b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ms-btn:hover {
    background: #163b52;
}

@media (max-width: 768px) {
.container { width: min(100% - 16px, 1100px); margin: 16px auto 90px; }
.header { padding: 20px 16px; }
.body { padding: 16px; }
.header h1 { font-size: 1.38rem; }
.header p, .legend, .note { font-size: 0.9rem; }
.fields-grid { grid-template-columns: 1fr; gap: 14px; }
.section-title { font-size: 1rem; margin: 22px 0 12px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="file"], select, textarea { font-size: 16px; }
.desktop-ratings { display: none; }
.mobile-ratings { display: block; }
#signatureCanvas { height: 170px; }
.actions { flex-direction: column; }
.btn { width: 100%; }
.sticky-submit {
display: block;
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 10px 12px;
background: rgba(255,255,255,0.96);
backdrop-filter: blur(8px);
border-top: 1px solid #dce5f1;
z-index: 1000;
}
.sticky-submit .btn { width: 100%; }
}

/* Mobile */
@media (max-width: 480px) {
    .ms-thankyou-card {
        padding: 30px 20px;
    }

    .ms-title {
        font-size: 22px;
    }
	
	 .logodiv img {
        max-width: 250px;
    }
}