/*
============================================
    AhotoEats Waitlist Page Styles
    Primary Colors: Black (#000) & Orange (#ff9900)
============================================
*/

:root {
    --primary-orange: #ff9900;
    --primary-orange-dark: #e68a00;
    --primary-orange-light: #ffad33;
    --primary-black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --lighter-gray: #999999;
    --bg-light: #f9f9f9;
    --bg-orange-light: #fff8eb;
    --white: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
}

/* ===== Waitlist Page Base ===== */
.waitlist-page {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-orange-light) 100%);
    min-height: 100vh;
}

/* ===== Waitlist Header ===== */
.waitlist_header {
    padding: 20px 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.waitlist_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.waitlist_logo img {
    height: 40px;
}

.back_home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--medium-gray);
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back_home:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    background: var(--bg-orange-light);
    text-decoration: none;
}

/* ===== Waitlist Main Area ===== */
.waitlist_area {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.waitlist_shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.waitlist_shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.waitlist_shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.waitlist_shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.08) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

.waitlist_shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    top: 50%;
    left: 30%;
}

/* ===== Waitlist Wrapper ===== */
.waitlist_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ===== Waitlist Info (Left Side) ===== */
.waitlist_info {
    padding: 20px 0;
}

.waitlist_badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-black);
    color: var(--primary-orange);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.waitlist_badge i {
    font-size: 18px;
}

.waitlist_title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-black);
    line-height: 1.2;
    margin-bottom: 20px;
}

.waitlist_title span {
    color: var(--primary-orange);
}

.waitlist_subtitle {
    font-size: 18px;
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Benefits List */
.waitlist_benefits {
    margin-bottom: 35px;
}

.waitlist_benefits h5 {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.waitlist_benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.waitlist_benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--medium-gray);
    font-size: 15px;
}

.waitlist_benefits li i {
    color: var(--primary-orange);
    font-size: 20px;
}

/* Stats */
.waitlist_stats {
    display: flex;
    gap: 40px;
    padding: 25px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.stat_item {
    display: flex;
    flex-direction: column;
}

.stat_number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat_label {
    font-size: 14px;
    color: var(--lighter-gray);
    margin-top: 5px;
}

/* Note Box */
.waitlist_note {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.waitlist_note > i {
    color: var(--primary-orange);
    font-size: 24px;
    flex-shrink: 0;
}

.waitlist_note p {
    margin: 0;
    color: var(--light-gray);
    font-size: 14px;
    line-height: 1.7;
}

.waitlist_note a {
    color: var(--primary-orange);
    font-weight: 600;
}

/* ===== Waitlist Form Container (Right Side) ===== */
.waitlist_form_container {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form_header {
    text-align: center;
    margin-bottom: 35px;
}

.form_header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.form_header p {
    color: var(--lighter-gray);
    margin: 0;
}

/* Form Groups */
.form_group {
    margin-bottom: 25px;
}

.form_group label {
    display: block;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.form_group label .required {
    color: var(--error);
}

.form_group label .optional {
    color: var(--lighter-gray);
    font-weight: 400;
}

.input_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input_wrapper > i {
    position: absolute;
    left: 18px;
    color: var(--lighter-gray);
    font-size: 18px;
    z-index: 1;
}

.input_wrapper input,
.input_wrapper select {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: var(--primary-black);
    background: var(--white);
    transition: all 0.3s ease;
}

.input_wrapper input:focus,
.input_wrapper select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.1);
}

.input_wrapper input::placeholder {
    color: var(--lighter-gray);
}

/* Phone Input */
.phone_wrapper {
    position: relative;
}

.phone_wrapper .country_code {
    position: absolute;
    left: 50px;
    color: var(--medium-gray);
    font-weight: 600;
    font-size: 15px;
    z-index: 1;
    padding-right: 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.phone_wrapper input {
    padding-left: 110px;
}

/* Input Hint */
.input_hint {
    display: block;
    margin-top: 8px;
    color: var(--lighter-gray);
    font-size: 12px;
}

/* Terms Checkbox */
.form_terms {
    margin-bottom: 30px;
}

.checkbox_wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox_wrapper input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox_wrapper input:checked + .checkmark {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.checkbox_wrapper input:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.terms_text {
    color: var(--light-gray);
    font-size: 14px;
    line-height: 1.5;
}

.terms_text a {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Submit Button */
.submit_btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit_btn:hover:not(:disabled) {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
}

.submit_btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.lni-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Footer */
.form_footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.form_footer p {
    color: var(--lighter-gray);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.form_footer i {
    color: var(--success);
}

/* ===== Success Modal ===== */
.success_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success_modal.show {
    opacity: 1;
    visibility: visible;
}

.modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal_content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.success_modal.show .modal_content {
    transform: scale(1);
}

.modal_icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.modal_icon i {
    font-size: 50px;
    color: var(--white);
}

.modal_content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.modal_content > p {
    color: var(--light-gray);
    margin-bottom: 30px;
}

/* Referral Code Box */
.referral_code_box {
    background: var(--bg-orange-light);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px dashed var(--primary-orange);
}

.referral_code_box > p {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.code_display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.code_display span {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-black);
    letter-spacing: 2px;
}

.copy_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy_btn:hover {
    background: var(--primary-orange);
}

.referral_code_box small {
    color: var(--lighter-gray);
    font-size: 12px;
}

/* Share Section */
.share_section {
    margin-bottom: 30px;
}

.share_section > p {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.share_buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share_btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.share_btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.share_btn.facebook {
    background: #1877F2;
    color: var(--white);
}

.share_btn.twitter {
    background: #1DA1F2;
    color: var(--white);
}

.share_btn:hover {
    opacity: 0.9;
}

/* Modal Button */
.modal_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal_btn:hover {
    background: var(--primary-orange-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===== Waitlist Footer ===== */
.waitlist_footer {
    padding: 30px 0;
    background: var(--primary-black);
}

.waitlist_footer p {
    color: var(--lighter-gray);
    margin: 0;
    font-size: 14px;
}

.waitlist_footer a {
    color: var(--primary-orange);
}

.waitlist_footer .copyright {
    margin-top: 8px;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .waitlist_wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .waitlist_title {
        font-size: 36px;
    }
    
    .waitlist_form_container {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .waitlist_area {
        padding: 40px 0 60px;
    }
    
    .waitlist_title {
        font-size: 30px;
    }
    
    .waitlist_stats {
        gap: 30px;
    }
    
    .stat_number {
        font-size: 26px;
    }
    
    .modal_content {
        padding: 40px 25px;
    }
    
    .code_display {
        flex-direction: column;
        gap: 10px;
    }
    
    .code_display span {
        font-size: 20px;
    }
    
    .share_buttons {
        flex-direction: column;
    }
    
    .share_btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .waitlist_title {
        font-size: 26px;
    }
    
    .waitlist_form_container {
        padding: 30px 20px;
    }
    
    .input_wrapper input,
    .input_wrapper select {
        padding: 14px 14px 14px 45px;
        font-size: 14px;
    }
    
    .phone_wrapper input {
        padding-left: 100px;
    }
    
    .submit_btn {
        padding: 16px 25px;
    }
}