/* WhatsApp Lead Capture Form Styles */

:root {
    --wlc-primary: #25D366;
    --wlc-primary-dark: #128C7E;
    --wlc-secondary: #075E54;
    --wlc-light: #DCF8C6;
    --wlc-white: #ffffff;
    --wlc-gray-light: #f5f5f5;
    --wlc-gray: #cccccc;
    --wlc-gray-dark: #666666;
    --wlc-text: #333333;
    --wlc-border: #e0e0e0;
    --wlc-error: #dc3545;
    --wlc-success: #28a745;
    --wlc-warning: #ffc107;
    --wlc-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --wlc-radius: 8px;
}

.wlc-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.wlc-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--wlc-white);
    border-radius: var(--wlc-radius);
    box-shadow: var(--wlc-shadow);
    overflow: hidden;
}

.wlc-form {
    padding: 30px;
}

.wlc-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--wlc-border);
}

.wlc-form-header h2 {
    margin: 0 0 10px 0;
    color: var(--wlc-secondary);
    font-size: 28px;
    font-weight: 700;
}

.wlc-form-header p {
    margin: 0;
    color: var(--wlc-gray-dark);
    font-size: 16px;
}

.wlc-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--wlc-gray-light);
    border-radius: var(--wlc-radius);
}

.wlc-section-title {
    margin: 0 0 20px 0;
    color: var(--wlc-secondary);
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wlc-primary);
}

.wlc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wlc-form-row.wlc-three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

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

.wlc-form-group:last-child {
    margin-bottom: 0;
}

.wlc-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--wlc-text);
    font-weight: 600;
    font-size: 14px;
}

.wlc-form-group input[type="text"],
.wlc-form-group input[type="email"],
.wlc-form-group input[type="tel"],
.wlc-form-group input[type="number"],
.wlc-form-group select,
.wlc-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--wlc-border);
    border-radius: var(--wlc-radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wlc-form-group input:focus,
.wlc-form-group select:focus,
.wlc-form-group textarea:focus {
    outline: none;
    border-color: var(--wlc-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wlc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: var(--wlc-error);
    font-weight: bold;
}

/* Input with Button */
.wlc-input-with-button {
    display: flex;
    gap: 10px;
}

.wlc-input-with-button input {
    flex: 1;
}

.wlc-input-with-button button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* OTP Input */
.wlc-otp-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.wlc-otp-input input {
    flex: 1;
    max-width: 150px;
}

.wlc-verified-badge {
    color: var(--wlc-success);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Buttons */
.wlc-btn-primary,
.wlc-btn-secondary,
.wlc-btn-verify {
    padding: 12px 24px;
    border: none;
    border-radius: var(--wlc-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wlc-btn-primary {
    background: linear-gradient(135deg, var(--wlc-primary) 0%, var(--wlc-primary-dark) 100%);
    color: var(--wlc-white);
    width: 100%;
    font-size: 16px;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.wlc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wlc-btn-primary:disabled {
    background: var(--wlc-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.wlc-btn-secondary {
    background: var(--wlc-secondary);
    color: var(--wlc-white);
}

.wlc-btn-secondary:hover:not(:disabled) {
    background: var(--wlc-primary-dark);
    transform: translateY(-1px);
}

.wlc-btn-verify {
    background: var(--wlc-primary);
    color: var(--wlc-white);
}

.wlc-btn-verify:hover:not(:disabled) {
    background: var(--wlc-primary-dark);
}

.wlc-btn-secondary:disabled,
.wlc-btn-verify:disabled {
    background: var(--wlc-gray);
    cursor: not-allowed;
}

/* Spinner */
.wlc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wlc-spin 0.8s linear infinite;
}

@keyframes wlc-spin {
    to { transform: rotate(360deg); }
}

/* Checkbox & Radio */
.wlc-checkbox-label,
.wlc-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 10px;
}

.wlc-checkbox-label input[type="checkbox"],
.wlc-radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.wlc-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Messages */
.wlc-message {
    padding: 15px 20px;
    border-radius: var(--wlc-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

.wlc-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Help Text */
.wlc-help-text {
    display: block;
    margin-top: 5px;
    color: var(--wlc-gray-dark);
    font-size: 13px;
}

/* Form Actions */
.wlc-form-actions {
    margin-top: 30px;
    text-align: center;
}

.wlc-form-actions .wlc-help-text {
    margin-top: 15px;
}

/* Verification Group */
.wlc-verification-group {
    background: #fff;
    padding: 15px;
    border-radius: var(--wlc-radius);
    border: 1px solid var(--wlc-border);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wlc-form {
        padding: 20px;
    }
    
    .wlc-form-row,
    .wlc-form-row.wlc-three-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wlc-form-header h2 {
        font-size: 24px;
    }
    
    .wlc-section {
        padding: 15px;
    }
    
    .wlc-input-with-button {
        flex-direction: column;
    }
    
    .wlc-input-with-button button {
        width: 100%;
    }
    
    .wlc-otp-input {
        flex-wrap: wrap;
    }
    
    .wlc-otp-input input {
        max-width: 100%;
    }
    
    .wlc-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .wlc-form-wrapper {
        padding: 0 10px;
    }
    
    .wlc-form {
        padding: 15px;
    }
    
    .wlc-section {
        padding: 10px;
    }
    
    .wlc-btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wlc-otp-input {
    animation: fadeIn 0.3s ease;
}

/* Print Styles */
@media print {
    .wlc-form-wrapper {
        box-shadow: none;
    }
    
    .wlc-btn-primary,
    .wlc-btn-secondary,
    .wlc-btn-verify {
        display: none;
    }
}
/* ============================================
   NEW STYLES FOR UPDATED DESIGN
   ============================================ */

/* Updated Form Header with Green Gradient */
.wlc-form-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    text-align: center;
    margin: 0 0 30px 0;
    padding: 30px 20px;
    border-bottom: none;
    border-radius: var(--wlc-radius) var(--wlc-radius) 0 0;
    margin: -30px -30px 30px -30px;
}

.wlc-form-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.wlc-form-header p {
    color: #ffffff;
    opacity: 0.95;
    font-size: 16px;
    margin: 0;
}

/* Section Title with Icons and Badges */
.wlc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: var(--wlc-text);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 0;
    border-bottom: none;
}

.wlc-section-icon {
    font-size: 24px;
}

.wlc-required-badge {
    margin-left: auto;
    background: #ffebee;
    color: #c62828;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.wlc-optional-badge {
    margin-left: auto;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Phone Input with +91 Prefix */
.wlc-phone-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.wlc-country-prefix {
    background: var(--wlc-gray-light);
    border: 2px solid var(--wlc-border);
    border-radius: var(--wlc-radius);
    padding: 12px 15px;
    font-weight: 600;
    color: var(--wlc-text);
    white-space: nowrap;
}

.wlc-phone-input-container input[type="tel"] {
    flex: 1;
}

/* Resend OTP Button - Green */
.wlc-btn-resend {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--wlc-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wlc-btn-resend:hover:not(:disabled) {
    background: #128C7E;
}

.wlc-btn-resend:disabled {
    background: var(--wlc-gray);
    cursor: not-allowed;
}

/* Verify Button - Blue */
.wlc-btn-verify {
    background: #1976d2;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--wlc-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wlc-btn-verify:hover:not(:disabled) {
    background: #1565c0;
}

/* Collapsible Section */
.wlc-collapsible-section {
    background: var(--wlc-white);
    border: 1px solid var(--wlc-border);
}

.wlc-toggle-header {
    cursor: pointer;
    user-select: none;
    padding: 15px 20px;
    margin: 0;
    background: var(--wlc-gray-light);
    border-radius: var(--wlc-radius) var(--wlc-radius) 0 0;
    transition: background 0.3s ease;
}

.wlc-toggle-header:hover {
    background: #e8e8e8;
}

.wlc-toggle-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.wlc-toggle-header.active .wlc-toggle-icon {
    transform: rotate(180deg);
}

.wlc-collapsible-content {
    padding: 20px;
    display: none;
}

.wlc-collapsible-content.active {
    display: block;
}

/* Help Text Under Fields */
.wlc-help-text {
    display: block;
    margin-top: 5px;
    color: var(--wlc-gray-dark);
    font-size: 12px;
    font-style: italic;
}

/* Medium Select Dropdown */
.wlc-medium-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--wlc-border);
    border-radius: var(--wlc-radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wlc-medium-select:focus {
    outline: none;
    border-color: var(--wlc-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .wlc-phone-input-container {
        flex-wrap: wrap;
    }
    
    .wlc-country-prefix {
        width: 60px;
        text-align: center;
        padding: 12px 10px;
    }
    
    .wlc-btn-resend {
        width: 100%;
        margin-top: 10px;
    }
    
    .wlc-section-title {
        font-size: 16px;
    }
    
    .wlc-section-icon {
        font-size: 20px;
    }
}