.status-message.success{
    display: none;
}




/* step panels (input / confirm / messages) */
.step {
  position: relative;
  width: 100%;
    transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 320ms cubic-bezier(.2,.8,.2,1);
    opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.step.active {
    opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* viewport masks panels so only one overlays the area */
.viewport {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative; 
    margin: 0 auto;
}

/* Ensure viewport has space for panels to render */
.viewport { min-height: 800px; }
@media (max-width: 1024px) { .viewport { min-height: 720px; } }
@media (max-width: 768px) { .viewport { min-height: 640px; } }

/* panels inside viewport: use opacity-based fade transitions and absolute positioning
   so non-active panels do not occupy layout space */
.step-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity;
}
.step-panel.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.step-panel:not(.active) { z-index: 1; }




/**********************: MUI Form Styles **********************/
.mui-form {
    width: 800px;
    max-width: 100%;
    margin: 32px auto 0;
    padding: 32px 28px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px #0366d61a;
    border: 1px solid #e3eaf5
}

.mui-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 23px
}

.mui-form label {
    font-size: 15px;
    color: #0366d6;
    margin-bottom: 7px;
    font-weight: 600;
    letter-spacing: .02em
}

.required {
    color: #d85f52;
    font-weight: 400;
    font-size: 14px;
    margin-left: 10px
}

.mui-form input,
.mui-form textarea,
.mui-form select {
    font-size: 16px;
    padding: 12px 14px;
    border: 1.5px solid #b6c7e3;
    border-radius: 7px;
    background: #fafdff;
    color: #000;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    margin-bottom: 2px;
    resize: vertical;
    font-family: inherit;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text
}

.mui-form input:focus,
.mui-form textarea:focus,
.mui-form select:focus {
    border-color: #0366d6;
    box-shadow: 0 0 0 2px #0366d633
}

.mui-form input.error,
.mui-form select.error,
.mui-form textarea.error {
    border-color: #d85f52
}

.mui-form textarea {
    resize: vertical;
    min-height: 120px
}

.error-message {
    color: #d85f52;
    font-size: 13px;
    margin-top: 4px
}

.form-privacy {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 7px;
    margin-bottom: 20px;
    margin-top: 10px
}

.form-privacy p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0
}

.form-privacy a {
    color: #0366d6;
    text-decoration: none
}

.form-privacy a:hover {
    text-decoration: underline
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important
}

.checkbox-label input[type=checkbox] {
    width: auto;
    cursor: pointer;
    appearance: auto;
    accent-color: #0366d6;
    color-scheme: light
}

.mui-btn {
    padding: 14px 32px;
    background: #0366d6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    align-self: flex-start
}

.mui-btn:hover:not(:disabled) {
    background: #0256b8;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px #0366d64d
}

.mui-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none
}

.status-message {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336
}

@media(max-width:768px) {
    .card-form-wrap {
        padding: 20px
    }

    .mui-btn {
        width: 100%
    }
}








.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0009;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px #0000004d;
    margin: auto
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 16px 20px;
    z-index: 10;
    transition: color .2s
}

.modal-close:hover {
    color: #000
}

.modal-body {
    padding: 20px 40px 40px;
    color: #333;
    line-height: 1.8
}

.modal-body h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #0366d6;
    border-bottom: 2px solid #0366d6;
    padding-bottom: 12px
}

.modal-body h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #0366d6;
    font-weight: 600
}

.modal-body p {
    margin-bottom: 16px;
    font-size: 15px
}

.modal-body ul {
    margin: 16px 0 16px 24px;
    padding-left: 0
}

.modal-body ul li {
    margin-bottom: 8px;
    font-size: 15px
}

.modal-body a {
    color: #0366d6;
    text-decoration: none
}

.modal-body a:hover {
    text-decoration: underline
}

@media(max-width:768px) {
    .modal-content {
        max-height: 95vh;
        margin: 10px
    }

    .modal-body {
        padding: 16px 24px 32px
    }

    .modal-body h1 {
        font-size: 24px
    }

    .modal-body h2 {
        font-size: 18px
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}
