:root {
    --brand-blue: #24a1de;
    --brand-indigo: #3f51b5;
    --text-muted: #6b6b6b;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #ffffff;
}

.site-logo {
    height: 40px;
    width: auto;
}

/* Hero banner */
.site-banner {
    position: relative;
    text-align: left;
    background-color: #e9f1fa;
}

.site-banner img {
    width: 100%;
    height: auto;
}

/* Marquee announcement */
.announcement {
    overflow: hidden;
    background-color: var(--brand-blue);
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 0;
    white-space: nowrap;
}

.announcement-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 14s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Form */
.page-main {
    padding: 28px 0 32px;
    background-color: #f4f5f7;
}

.panel {
    background-color: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 3px;
}

.panel-head {
    padding: 16px 24px 14px;
    border-bottom: 1px solid #e6e8ec;
    background-color: #fbfcfd;
}

.panel-title {
    margin: 0;
    color: #22282f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.panel-subtitle {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
}

.panel-body {
    padding: 20px 24px 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #2b323b;
    font-size: 13px;
    font-weight: 600;
}

.form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid #c6ccd4;
    border-radius: 3px;
    background-color: #ffffff;
    color: #22282f;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.form-control::placeholder {
    color: #9aa3ae;
}

.form-control:focus {
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.15);
    outline: none;
}

.form-control[aria-invalid="true"] {
    border-color: #c62828;
    background-color: #fffafa;
}

.form-control[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.14);
}

/* Phone field: prefix sits inside the same 38px box */
.phone-field {
    display: flex;
}

.phone-prefix {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #c6ccd4;
    border-right: none;
    border-radius: 3px 0 0 3px;
    background-color: var(--brand-indigo);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.phone-field .form-control {
    border-radius: 0 3px 3px 0;
}

.form-help {
    margin: 5px 0 0;
    color: #8a929c;
    font-size: 12px;
}

.form-error {
    margin: 5px 0 0;
    color: #c62828;
    font-size: 12px;
}

.form-group-check {
    margin-top: 18px;
    margin-bottom: 18px;
}

.form-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.form-check-input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    accent-color: var(--brand-indigo);
    cursor: pointer;
}

.form-check-input[aria-invalid="true"] {
    outline: 2px solid rgba(198, 40, 40, 0.45);
    outline-offset: 1px;
}

.form-check-label {
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.55;
    cursor: pointer;
}

.form-actions {
    padding-top: 4px;
    text-align: center;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

.btn.is-loading {
    display: inline-flex;
    align-items: center;
}

#btnSubmit {
    padding: 8px 20px;
    border: 1px solid #35459b;
    border-radius: 3px;
    background-color: var(--brand-indigo);
    background-image: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

#btnSubmit:hover {
    background-color: #35459b;
}

#btnSubmit:focus-visible {
    outline: 2px solid rgba(36, 161, 222, 0.55);
    outline-offset: 2px;
}

#btnSubmit:disabled {
    cursor: progress;
    opacity: 0.8;
}

@media (max-width: 575px) {
    .panel-head,
    .panel-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Commitment note */
.commitment {
    background-color: var(--brand-blue);
    color: #ffffff;
    padding: 30px;
}

.commitment p {
    font-size: 14px;
    margin: 10px 0 0;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #888;
}

.site-footer p {
    margin: 0;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3f51b5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: -25px;
    margin-top: -25px;
    box-sizing: border-box;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-track,
    .btn-spinner {
        animation: none;
    }

    .announcement-track {
        padding-left: 0;
    }

    .announcement {
        white-space: normal;
        text-align: center;
    }
}
