/* Demo form - step 01 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #F3F5F6 url('lightLoginBackground.svg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo */
.logo-container {
    position: fixed;
    width: 190px;
    height: 58px;
    right: 50px;
    top: 17px;
    z-index: 10;
}

.logo-main {
    width: auto;
    height: 60px;
    max-width: 225px;
    object-fit: contain;
    display: block;
}

/* Main content */
.main-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    flex: 1;
    justify-content: center;
}

.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 50px;
}

.main-title {
    width: 100%;
    max-width: 700px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
    margin: 0;
}

.title-red {
    color: #F33C3C;
}

.title-black {
    color: #000000;
}

.subtitle {
    width: 100%;
    max-width: 433px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: #000000;
    margin: 0;
}

/* Form card */
.form-card {
    width: 476px;
    max-width: 90vw;
    background: #FFFFFF;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.06);
    border-radius: 13px;
    padding: 37px 40px 50px;
    margin-bottom: 50px;
}

.form-container {
    width: 100%;
    max-width: 395px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    margin: 0 0 46px 0;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.label-text {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    color: #313846;
}

.info-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
    color: #C6CAD7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #C6CAD7;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Inter';
    font-size: 14px;
    color: #313846;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #F33C3C;
}

.form-input::placeholder {
    color: #C6CAD7;
}

/* Checkbox styling to match site color scheme */
.checkbox-group {
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label .label-text {
    font-size: 13px;
    color: #313846;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    accent-color: #F33C3C;
    border: 1px solid #C6CAD7;
    border-radius: 3px;
    background: #FFFFFF;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    flex: none;
    min-width: 16px;
    min-height: 16px;
}

.checkbox-label input[type="checkbox"]:hover {
    box-shadow: 0 0 0 3px rgba(243,60,60,0.06);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243,60,60,0.12);
    border-color: #F33C3C;
}

.checkbox-label input[type="checkbox"]:invalid {
    border-color: #F33C3C;
}

/* Privacy cards */
.learn-more-btn {
    background: none;
    border: none;
    color: #6A7895;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.learn-more-btn:hover {
    text-decoration: underline;
}

.privacy-card {
    margin-top: 10px;
    padding: 12px;
    background: #F8F9FB;
    border: 1px solid #EAEDF0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #6A7895;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #C6CAD7;
    pointer-events: none;
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    width: 100%;
    height: 42px;
    background: #F33C3C;
    border: none;
    border-radius: 3px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 100%;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #e02d2d;
}

.submit-btn:active {
    background: #d02626;
}

/* Footer */
.footer-link {
    width: 100%;
    max-width: 613px;
    margin: 50px auto 10px;
    text-align: center;
    gap: 8px;
    z-index: 10;
}

.website-link {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #6A7895;
    text-decoration: none;
    transition: color 0.2s ease;
}

.website-link:hover {
    color: #F33C3C;
}

/* Result (success/error) page styles */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
    background: #F8F9FB;
    border: 1px solid #EAEDF0;
    border-radius: 10px;
    margin: 20px;
}

.result-icon {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-circle-outer {
    position: absolute;
    width: 96px;
    height: 96px;
    border: 2px solid #27AE60;
    border-radius: 50%;
    opacity: 0.1;
}

.result-circle-middle {
    position: absolute;
    width: 76px;
    height: 76px;
    border: 2px solid #27AE60;
    border-radius: 50%;
    opacity: 0.1;
}

.result-circle-inner {
    position: absolute;
    width: 62px;
    height: 62px;
    border: 2px solid #27AE60;
    border-radius: 50%;
}

.result-checkmark {
    font-size: 26px;
    color: #27AE60;
    font-weight: bold;
    z-index: 1;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 328px;
    text-align: center;
}

.result-title {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    color: #070712;
    margin: 0;
}

.result-message {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #6A7895;
    margin: 0;
}

/* Loading page styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 50px 20px;
    background: #F8F9FB;
    border: 1px solid #EAEDF0;
    border-radius: 10px;
    margin: 20px;
    min-height: 350px;
    justify-content: center;
}

.loading-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #EAEDF0;
    border-top: 4px solid #F33C3C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 350px;
    text-align: center;
}

.loading-title {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    color: #070712;
    margin: 0;
}

.loading-message {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #6A7895;
    margin: 0;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.step-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C6CAD7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.step-text {
    font-family: 'Inter';
    font-size: 14px;
    color: #6A7895;
    transition: all 0.3s ease;
}

.step-item.step-active .step-bullet {
    background: #F33C3C;
    animation: pulse 0.8s ease-in-out;
}

.step-item.step-active .step-text {
    color: #313846;
    font-weight: 500;
}

.step-item.step-completed .step-bullet {
    background: #27AE60;
    color: white;
}

.step-item.step-completed .step-bullet::before {
    content: "✓";
    font-size: 10px;
}

.step-item.step-completed .step-text {
    color: #27AE60;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Email verification specific styles */
.email-verification-icon .result-circle-outer {
    border-color: #F33C3C;
    opacity: 0.1;
}

.email-verification-icon .result-circle-middle {
    border-color: #F33C3C;
    opacity: 0.2;
}

.email-verification-icon .result-circle-inner {
    border-color: #F33C3C;
}

.email-verification-icon .result-checkmark {
    color: #F33C3C;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .subtitle {
        font-size: 14px;
        line-height: 17px;
    }
    
    .form-card {
        width: 90vw;
        padding: 30px 20px 40px;
    }
    
    .logo-container {
        right: 20px;
        transform: scale(0.8);
    }
    
    .bg-rect-283,
    .bg-rect-284,
    .bg-rect-285 {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 80px 10px 0;
    }
    
    .main-title {
        font-size: 20px;
        line-height: 26px;
    }
    
    .form-card {
        padding: 25px 15px 35px;
    }
    
    .form-container {
        max-width: 100%;
    }
}
