/* Email Section Styles for Step 7 */

.email-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.email-section h3 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-section h3::before {
    content: "📧";
    font-size: 1.25rem;
}

.email-section p {
    margin: 0 0 1.5rem 0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.email-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-form .input-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.email-form .input-group input[type="email"],
.email-form .input-group input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.email-form .input-group input[type="email"]:focus,
.email-form .input-group input[type="text"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.email-form .input-group input[type="email"]:invalid {
    border-color: #e53e3e;
}

.email-form .input-group small {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.email-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4299e1;
    cursor: pointer;
}

.checkbox-group label {
    color: #2d3748;
    font-size: 0.95rem;
    cursor: pointer;
    flex: 1;
}

.btn-email {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
}

.btn-email:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

.btn-email:active {
    transform: translateY(0);
}

.btn-email:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-email.loading {
    pointer-events: none;
}

.btn-email.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-email.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn-email.success::before {
    content: "✓ ";
}

.btn-email.error {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-email.error::before {
    content: "✗ ";
}

/* Email status messages */
.email-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.email-status.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #c6f6d5;
}

.email-status.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.email-status.info {
    background: #ebf8ff;
    color: #2a4365;
    border: 1px solid #bee3f8;
}

/* Responsive design */
@media (max-width: 768px) {
    .email-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .email-section h3 {
        font-size: 1.25rem;
    }
    
    .email-form {
        gap: 1rem;
    }
    
    .btn-email {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .email-section {
        padding: 1rem;
    }
    
    .email-options {
        padding: 0.75rem;
    }
    
    .checkbox-group {
        gap: 0.5rem;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
    }
}
