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

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a4fd6;
    padding: 30px 15px;
}

.container {
    max-width: 780px;
    width: 100%;
    border-radius: 12px;
    padding: 36px 40px 40px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f2fa;
}

.header-title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a4fd6;
    margin-bottom: 4px;
}

.header-sub {
    font-size: 12px;
    color: #888;
}

.title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a4fd6;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8ecf8;
}

.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.input-field {
    display: flex;
    flex-direction: column;
    width: calc(100% / 3 - 11px);
}

.input-field.full {
    width: 100%;
}

.input-field label {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}

.req {
    color: #e03e3e;
}

.input-field input,
.input-field select {
    outline: none;
    font-size: 13px;
    color: #222;
    border-radius: 6px;
    border: 1.5px solid #d0d8ee;
    padding: 0 12px;
    height: 40px;
    background: #fafbff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.input-field select {
    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='%231a4fd6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.input-field input:focus,
.input-field select:focus {
    border-color: #1a4fd6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 79, 214, 0.1);
}

.input-field input.valid,
.input-field select.valid {
    border-color: #28a745;
    background: #f6fff8;
}

.input-field input.invalid,
.input-field select.invalid {
    border-color: #e03e3e;
    background: #fff8f8;
}

.error-msg {
    font-size: 11px;
    color: #e03e3e;
    margin-top: 3px;
}

.error-msg::before {
    content: "⚠ ";
}

.btn-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf8;
}

.submitBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 32px;
    border: none;
    outline: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #1a4fd6;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 79, 214, 0.35);
    transition: all 0.25s ease;
}

.submitBtn:hover {
    background: #1340b8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 79, 214, 0.45);
}

.submitBtn:active {
    transform: translateY(0);
}

.success-msg {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.success-msg.show {
    display: flex;
}

.success-msg i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 16px;
}

.success-msg h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.success-msg p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 640px) {
    .container {
        padding: 24px 20px;
    }

    .input-field {
        width: calc(50% - 8px);
    }

    .input-field.full {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .input-field {
        width: 100%;
    }
}
