/**
 * DD Email Capture - Form Styles
 * Modern, clean design for recipe site
 */

/* Form Wrapper */
.ddec-form-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Form Container */
.ddec-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.ddec-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Form Content */
.ddec-form-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Title */
.ddec-form-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Description */
.ddec-form-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Form Fields Container */
.ddec-form-fields {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

/* Email Input */
.ddec-email-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ddec-email-input:focus {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.ddec-email-input::placeholder {
    color: #999;
}

/* Submit Button */
.ddec-submit-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.ddec-submit-btn:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ddec-submit-btn:active {
    transform: translateY(0);
}

.ddec-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Message */
.ddec-form-message {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ddec-form-message.success {
    color: #a8ff9e;
}

.ddec-form-message.error {
    color: #ffb3b3;
}

/* Privacy Note */
.ddec-privacy-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 16px 0 0 0;
}

/* Success State - Hide only form fields, not the message */
.ddec-form-wrapper.success .ddec-form-fields {
    display: none;
}

.ddec-form-wrapper.success .ddec-privacy-note {
    display: none;
}

.ddec-form-wrapper.success .ddec-form-message {
    font-size: 1.25rem;
    padding: 20px;
    display: block !important;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .ddec-form-container {
        padding: 24px 20px;
    }

    .ddec-form-title {
        font-size: 1.4rem;
    }

    .ddec-form-fields {
        flex-direction: column;
    }

    .ddec-email-input,
    .ddec-submit-btn {
        width: 100%;
    }
}

/* Alternative Recipe Theme */
.ddec-style-recipe .ddec-form-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ddec-style-recipe .ddec-submit-btn {
    color: #f5576c;
}

/* Dark Theme */
.ddec-style-dark .ddec-form-container {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

.ddec-style-dark .ddec-submit-btn {
    color: #414345;
}