/* STREAMING_CHUNK:Resetting styles and positioning base elements... */
*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(27, 54, 93, 0.4), transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
}

.card-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 40px 32px;
}

.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    background-color: rgba(197, 160, 89, 0.15);
    color: #8c6d2d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1b365d;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.95rem;
    color: #64748b;
}

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

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.required {
    color: #dc2626;
}

.optional {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-transform: uppercase;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="email"] {
    text-transform: none;
}

input:focus,
textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #1b365d;
    box-shadow: 0 0 0 4px rgba(27, 54, 93, 0.1);
}

input.is-invalid,
textarea.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.hint {
    display: block;
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 4px;
}

.error-text {
    display: block;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 4px;
    min-height: 18px;
}

.btn-primary {
    width: 100%;
    background-color: #1b365d;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background-color: #122440;
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-primary:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

/* STREAMING_CHUNK:Defining CSS Animations... */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.825rem;
    color: #64748b;
}

/* STREAMING_CHUNK:Styling Modal Dialog Overlay... */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #dcfce7;
    color: #16a34a;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-card h2 {
    font-size: 1.35rem;
    color: #1b365d;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
}

.cust-id-box {
    background-color: #f8fafc;
    border: 1px dashed #c5a059;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cust-id-box .label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cust-id-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1b365d;
    letter-spacing: 2px;
}

.modal-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 28px;
}

.btn-secondary {
    width: 100%;
    background-color: #1b365d;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #122440;
}

/* STREAMING_CHUNK:Responsive Breakpoints... */
@media (max-width: 480px) {
    .card-container {
        padding: 28px 20px;
    }
    .title {
        font-size: 1.4rem;
    }
}