/**
 * MDO Newsletter Frontend Styles
 * Clean, minimal design
 */

/* ============================================
   Newsletter Form Container
   ============================================ */
.mdo-newsletter-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 30px 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

/* ============================================
   Form Title & Description
   ============================================ */
.mdo-form-title {
    font-size: 22px;
    font-weight: 600;
    color: #453736;
    margin: 0 0 10px;
    text-align: center;
}

.mdo-form-description {
    font-size: 15px;
    color: #757575;
    margin: 0 0 25px;
    text-align: center;
    line-height: 1.5;
}

/* ============================================
   Form Row - Horizontal Layout
   ============================================ */
.mdo-subscribe-form {
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mdo-form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
}

.mdo-form-field {
    flex: 1;
    min-width: 0;
    max-width: 200px;
}

.mdo-form-field-btn {
    flex: 0 0 auto;
}

/* ============================================
   Input Fields
   ============================================ */
.mdo-subscribe-form .mdo-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    color: #453736;
    background: #ffffff;
    border: 1px solid #453736;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    height: 100%;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.mdo-subscribe-form .mdo-input:focus {
    border-color: #2a2420;
    background: #ffffff;
    box-shadow: 0 0 0 1px #453736;
}

.mdo-subscribe-form .mdo-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
    font-weight: 400;
}

.mdo-subscribe-form .mdo-input::-webkit-input-placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.mdo-subscribe-form .mdo-input::-moz-placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.mdo-subscribe-form .mdo-input:-ms-input-placeholder {
    color: #8a8a8a;
    opacity: 1;
}

/* ============================================
   Submit Button
   ============================================ */
.mdo-submit-btn {
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    background: #453736;
    border: 1px solid #453736;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    height: 100%;
    border-radius: 0;
}

.mdo-submit-btn:hover {
    background: #2a2420;
    border-color: #2a2420;
}

.mdo-submit-btn:active {
    transform: translateY(1px);
}

.mdo-submit-btn:disabled {
    background: #bdbdbd;
    border-color: #bdbdbd;
    cursor: not-allowed;
}

.mdo-btn-text {
    display: inline-block;
}

.mdo-btn-loading {
    display: none;
}

.mdo-submit-btn.loading .mdo-btn-text {
    display: none;
}

.mdo-submit-btn.loading .mdo-btn-loading {
    display: inline-block;
}

/* ============================================
   Messages
   ============================================ */
.mdo-form-message {
    padding: 12px 16px;
    border-radius: 0;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mdo-form-message.error {
    background: transparent;
    color: #9e4a4a;
    border: 1px solid #9e4a4a;
}

.mdo-form-message.success {
    background: transparent;
    color: #453736;
    border: 1px solid #453736;
}

/* ============================================
   Success State
   ============================================ */
.mdo-success-message {
    text-align: center;
    padding: 30px 20px;
    background: transparent;
}

.mdo-success-message svg {
    color: #453736;
    margin-bottom: 15px;
}

.mdo-success-message p {
    font-size: 16px;
    color: #453736;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .mdo-form-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mdo-form-field {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .mdo-form-field-btn {
        flex: 1 1 100%;
    }
    
    .mdo-submit-btn {
        width: 100%;
    }
}

/* ============================================
   Animation for Success
   ============================================ */
@keyframes mdo-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mdo-success-message {
    animation: mdo-fade-in 0.3s ease;
}

/* ============================================
   Loading Animation
   ============================================ */
@keyframes mdo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mdo-btn-loading svg {
    animation: mdo-spin 1s linear infinite;
}
