/* ===== WhatsApp Community Landing Page Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: #f0f0f0;
}

/* ===== Main Landing Section ===== */
.whatsapp-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00D084 0%, #00A8CC 100%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
}

.main-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
}

.intro-text {
    margin-bottom: 30px;
}

.intro-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefits-list {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.checkmark {
    color: #00D084;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    min-width: 20px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-whatsapp {
    background: #00D084;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
}

.btn-whatsapp:hover {
    background: #00B875;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

.btn-form {
    background: #4285F4;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-form:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.whatsapp-icon,
.form-icon {
    font-size: 18px;
}

.fab.fa-whatsapp {
    color: white;
    font-size: 18px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .main-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .benefit-item {
        font-size: 15px;
    }
    
    .btn-whatsapp,
    .btn-form {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 25px 15px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .intro-text p {
        font-size: 14px;
    }
    
    .benefit-item {
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* ===== 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);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 32px;
    color: #2c3e50;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #00D084, #00B875);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.modal .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal .form-group input,
.modal .form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: #00D084;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1);
    transform: translateY(-2px);
}

.modal .form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
    appearance: none;
}

/* Phone input with country code */
#leadContact {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Hover effects */
.modal .form-group input:hover,
.modal .form-group select:hover {
    border-color: #00D084;
    background-color: white;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #00D084 0%, #00B875 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #00B875 0%, #00A066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

.btn-submit i {
    font-size: 18px;
}

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

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Animation Effects ===== */
.main-card {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-item {
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }
.benefit-item:nth-child(6) { animation-delay: 0.6s; }
.benefit-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Button Hover Effects ===== */
.btn-whatsapp:active,
.btn-form:active {
    transform: translateY(0);
}

/* ===== Loading State ===== */
.btn-whatsapp.loading,
.btn-form.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-whatsapp.loading::after,
.btn-form.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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