/**
 * UTS Newsletter Subscriber Form Styling
 * 100% Pixel-Perfect Match for Luxury Transportation Footer & Widget Layouts
 */

/* Main Wrapper */
.uts-newsletter-wrapper {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.uts-newsletter-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* Heading */
.uts-newsletter-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    font-family: inherit;
}

/* Form Container */
.uts-newsletter-form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Input & Button Relative Box */
.uts-newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Rounded Pill Email Input */
.uts-newsletter-input {
    width: 100%;
    height: 52px;
    background-color: #ffffff;
    border: 1.5px solid #22c55e;
    border-radius: 9999px;
    padding: 0 60px 0 20px;
    font-size: 14.5px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
}

.uts-newsletter-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.uts-newsletter-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
    background-color: #ffffff;
}

.uts-newsletter-input.uts-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Circular Send Button */
.uts-newsletter-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #e06262;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    margin: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(224, 98, 98, 0.35);
    outline: none;
    flex-shrink: 0;
}

.uts-newsletter-btn:hover {
    background-color: #d45151;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 14px rgba(224, 98, 98, 0.45);
}

.uts-newsletter-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.uts-newsletter-btn:disabled {
    background-color: #cbd5e1 !important;
    cursor: not-allowed;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

/* Paper Airplane Icon */
.uts-newsletter-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    display: block;
    margin-left: 2px;
}

.uts-newsletter-btn:hover .uts-newsletter-icon {
    transform: translateX(1px) translateY(-1px);
}

/* Spinner Icon */
.uts-newsletter-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: utsNewsletterSpin 0.75s infinite linear;
}

@keyframes utsNewsletterSpin {
    to {
        transform: rotate(360deg);
    }
}

.uts-newsletter-btn.is-loading .uts-newsletter-icon {
    display: none;
}

.uts-newsletter-btn.is-loading .uts-newsletter-spinner {
    display: block;
}

/* Bottom Disclaimer Text */
.uts-newsletter-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
    font-weight: 400;
}

.uts-newsletter-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #f59e0b;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.uts-newsletter-disclaimer-text {
    flex: 1;
}

/* Live Alert Messages */
.uts-newsletter-response {
    display: none;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    animation: utsSlideIn 0.3s ease;
}

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

.uts-newsletter-response.uts-response-success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.uts-newsletter-response.uts-response-error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Dark Theme Compatibility (e.g. for dark footers) */
.uts-newsletter-wrapper.uts-theme-dark .uts-newsletter-title {
    color: #ffffff;
}

.uts-newsletter-wrapper.uts-theme-dark .uts-newsletter-disclaimer {
    color: #cbd5e1;
}

.uts-newsletter-wrapper.uts-theme-dark .uts-newsletter-input {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #22c55e;
}

.uts-newsletter-wrapper.uts-theme-dark .uts-newsletter-input::placeholder {
    color: #64748b;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
    .uts-newsletter-title {
        font-size: 20px;
    }

    .uts-newsletter-input {
        height: 48px;
        font-size: 14px;
        padding-right: 54px;
    }

    .uts-newsletter-btn {
        width: 40px;
        height: 40px;
        right: 4px;
    }

    .uts-newsletter-disclaimer {
        font-size: 12.5px;
    }
}
