/* Newsletter Discount Signup — Form Styles */

.nd-wrap {
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nd-inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 8px 40px rgba(244, 207, 62, 0.20);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nd-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f4cf3e, #e6b800);
}

/* Badge */
.nd-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f4cf3e, #e6b800);
    color: #1a1a2e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

/* Heading */
.nd-heading {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin: 0 0 12px !important;
    line-height: 1.2 !important;
}

.nd-highlight {
    color: #b8960a;
    -webkit-text-fill-color: #b8960a;
}

/* Subtext */
.nd-subtext {
    color: #666 !important;
    font-size: 15px !important;
    margin: 0 0 28px !important;
    line-height: 1.5 !important;
}

/* Required star */
.nd-req {
    color: #e74c3c;
    margin-left: 2px;
}

/* Form layout */
#nd-form {
    text-align: left;
}

.nd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nd-field {
    margin-bottom: 14px;
}

.nd-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nd-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.nd-field input:focus {
    outline: none;
    border-color: #f4cf3e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(244, 207, 62, 0.20);
}

.nd-field input::placeholder {
    color: #bbb;
}

/* Messages */
.nd-message {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.4;
}

.nd-message.error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.nd-message.success {
    background: #fffbea;
    color: #7a6000;
    border: 1px solid #f4cf3e;
}

/* Submit button */
#nd-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #f4cf3e, #e6b800);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(244, 207, 62, 0.40);
    letter-spacing: 0.3px;
}

#nd-submit:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 207, 62, 0.55);
}

#nd-submit:active:not(:disabled) {
    transform: translateY(0);
}

#nd-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Disclaimer */
.nd-disclaimer {
    font-size: 12px !important;
    color: #aaa !important;
    text-align: center !important;
    margin: 12px 0 0 !important;
    line-height: 1.5 !important;
}

/* Success state */
#nd-success {
    padding: 12px 0 4px;
}

.nd-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f4cf3e, #e6b800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1a1a2e;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(244, 207, 62, 0.45);
    line-height: 1;
}

#nd-success h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin: 0 0 10px !important;
}

#nd-success p {
    color: #666 !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Mobile */
@media (max-width: 480px) {
    .nd-inner {
        padding: 32px 22px;
    }

    .nd-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nd-heading {
        font-size: 22px !important;
    }
}
