/* 
===============================
GLOBAL STYLES
===============================
*/


:root {
    /* Brand Colors */
    --primary-color: #1A73E8;
    --secondary-color: #FFC107;
    --accent-color: #4CAF50;
    --neutral-color: #F5F5F5;
    --text-color: #333333;
    --error-color: #D32F2F;
    --success-color: #388E3C;
    --white: #FFFFFF;
    --light-gray: #E0E0E0;
    --dark-gray: #757575;
    --border-color: #DDDDDD;
/* 
===============================
SUCCESS MESSAGE
===============================
*/

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
}

.onboarding-option {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--neutral-color);
    border-radius: 6px;
}

.onboarding-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* 
===============================
MODAL STYLES
===============================
*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: #333;
}

.terms-content {
    height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--neutral-color);
    text-align: left;
}

.terms-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 
===============================
FOOTER STYLES
===============================
*/

footer {
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0D62D1;
    text-decoration: underline;
}

/* 
===============================
RESPONSIVE STYLES
===============================
*/

@media screen and (max-width: 768px) {
    .registration-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row .form-group {
        margin-bottom: 0;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .registration-container {
        padding: 25px 15px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #refresh-captcha {
        align-self: flex-end;
    }
}}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--neutral-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 
===============================
CONTAINER AND LAYOUT
===============================
*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 
===============================
HEADER STYLES
===============================
*/

header {
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 60px;
    max-width: 200px;
}

/* 
===============================
MAIN CONTENT
===============================
*/

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 40px 0;
}

.registration-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--accent-color);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: left;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

/* 
===============================
PROGRESS BAR
===============================
*/

.progress-bar-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 3px;
    position: relative;
    margin-bottom: 10px;
}

.progress {
    position: absolute;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 25%; /* Initial width for first step */
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    width: 30px;
    height: 30px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.step.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.step.completed {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 
===============================
FORM ELEMENTS
===============================
*/

.form-step {
    text-align: left;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    display: block;
    margin-top: 5px;
    min-height: 18px;
}

/* 
===============================
CAPTCHA
===============================
*/

.captcha-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#captcha-challenge {
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 3px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    user-select: none;
}

#refresh-captcha {
    background-color: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

#refresh-captcha:hover {
    background-color: var(--border-color);
}

/* 
===============================
BUTTONS
===============================
*/

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.primary-btn, 
.secondary-btn, 
.contact-sales-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    flex: 1;
    max-width: 200px;
}

.primary-btn:hover {
    background-color: #0D62D1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.primary-btn:disabled {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    flex: 1;
    max-width: 200px;
}

.secondary-btn:hover {
    background-color: rgba(26, 115, 232, 0.05);
}

.contact-sales-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
}

.contact-sales-btn:hover {
    background-color: #FFB300;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 
===============================
EDGE INTEGRATION STEP
===============================
*/

.verification-status {
    background-color: var(--neutral-color);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px auto;
    border: 4px solid rgba(26, 115, 232, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.sales-rep-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    border-radius: 6px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sales-rep-icon {
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-rep-icon svg {
    stroke: var(--white);
}

.sales-rep-details h3 {
    margin-bottom: 5px;
}

.sales-rep-details p {
    margin-bottom: 5px;
    font-size: 14px;
}

.error-icon {
    margin: 0 auto 15px auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
