/**
 * Coming Soon Widget Styles
 *
 * Reusable component for "Coming Soon" / "Express Interest" forms
 */

/* ========================================
   BASE WIDGET STYLES
   ======================================== */

.ece-coming-soon-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(30, 58, 95, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Icon */
.ece-coming-soon-widget__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ece-coming-soon-widget__icon svg {
    width: 36px;
    height: 36px;
    color: #2563eb;
}

/* Badge */
.ece-coming-soon-widget__badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* Title */
.ece-coming-soon-widget__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Subtitle */
.ece-coming-soon-widget__subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

/* ========================================
   FORM STYLES
   ======================================== */

.ece-coming-soon-widget__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 380px;
    margin: 0 auto;
}

.ece-coming-soon-widget__row {
    display: flex;
    gap: 12px;
}

.ece-coming-soon-widget__row .ece-coming-soon-widget__input-group {
    flex: 1;
}

.ece-coming-soon-widget__input-group {
    text-align: left;
}

.ece-coming-soon-widget__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ece-coming-soon-widget__required {
    color: #ef4444;
}

.ece-coming-soon-widget__optional {
    color: #9ca3af;
    font-weight: 400;
}

.ece-coming-soon-widget__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e3a5f;
}

.ece-coming-soon-widget__input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ece-coming-soon-widget__input::placeholder {
    color: #9ca3af;
}

/* Select dropdown */
.ece-coming-soon-widget__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.ece-coming-soon-widget__select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

/* Button */
.ece-coming-soon-widget__button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.ece-coming-soon-widget__button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ece-coming-soon-widget__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ece-coming-soon-widget__button-icon {
    width: 18px;
    height: 18px;
}

/* Loading spinner */
.ece-coming-soon-widget__spinner {
    width: 18px;
    height: 18px;
    animation: ece-csw-spin 1s linear infinite;
}

@keyframes ece-csw-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Privacy text */
.ece-coming-soon-widget__privacy {
    font-size: 12px;
    color: #9ca3af;
    margin: 14px 0 0 0;
}

.ece-coming-soon-widget__privacy a {
    color: #6b7280;
    text-decoration: underline;
}

.ece-coming-soon-widget__privacy a:hover {
    color: #374151;
}

/* ========================================
   SUCCESS STATE
   ======================================== */

.ece-coming-soon-widget--success .ece-coming-soon-widget__form,
.ece-coming-soon-widget--success .ece-coming-soon-widget__privacy {
    display: none;
}

.ece-coming-soon-widget__success {
    padding: 16px 0;
}

.ece-coming-soon-widget--success .ece-coming-soon-widget__success {
    display: block;
}

.ece-coming-soon-widget__success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.ece-coming-soon-widget__success-icon svg {
    width: 28px;
    height: 28px;
    color: #059669;
}

.ece-coming-soon-widget__success-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 6px 0;
}

.ece-coming-soon-widget__success-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ========================================
   ERROR STATE
   ======================================== */

.ece-coming-soon-widget__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
}

.ece-coming-soon-widget__error-text {
    font-size: 14px;
    color: #dc2626;
    margin: 0;
}

/* ========================================
   COMPACT VARIANT
   ======================================== */

.ece-coming-soon-widget--compact {
    padding: 32px 28px;
}

.ece-coming-soon-widget--compact .ece-coming-soon-widget__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.ece-coming-soon-widget--compact .ece-coming-soon-widget__icon svg {
    width: 26px;
    height: 26px;
}

.ece-coming-soon-widget--compact .ece-coming-soon-widget__title {
    font-size: 18px;
}

.ece-coming-soon-widget--compact .ece-coming-soon-widget__subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.ece-coming-soon-widget--compact .ece-coming-soon-widget__input {
    padding: 10px 12px;
    font-size: 13px;
}

.ece-coming-soon-widget--compact .ece-coming-soon-widget__button {
    padding: 12px 20px;
    font-size: 13px;
}

/* ========================================
   DARK VARIANT
   ======================================== */

.ece-coming-soon-widget--dark {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    border: none;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__icon {
    background: rgba(255, 255, 255, 0.1);
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__icon svg {
    color: #60a5fa;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__title {
    color: #ffffff;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__subtitle {
    color: #94a3b8;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__label {
    color: #e2e8f0;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__optional {
    color: #64748b;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__input::placeholder {
    color: #64748b;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2360a5fa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__select option {
    background: #1e3a5f;
    color: #ffffff;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__button {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__privacy {
    color: #64748b;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__privacy a {
    color: #94a3b8;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__success-title {
    color: #ffffff;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__success-text {
    color: #94a3b8;
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.ece-coming-soon-widget--dark .ece-coming-soon-widget__error-text {
    color: #fca5a5;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .ece-coming-soon-widget {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .ece-coming-soon-widget__row {
        flex-direction: column;
    }

    .ece-coming-soon-widget__title {
        font-size: 20px;
    }

    .ece-coming-soon-widget__form {
        max-width: 100%;
    }
}
