/**
 * High Noon "Notify Me" Modal - External Stylesheet
 * Brand: High Noon Spirits
 * Colors:
 *   - Primary (Gold): #FCB53A
 *   - Accent (Blue): #1ca6df
 *   - Text: #000000
 *   - Background: #ffffff
 *   - Input Background: #e8e8e8
 *   - Error: #dc3545
 */

/* Reset */
.nm-modal-overlay *,
.nm-modal-overlay *:before,
.nm-modal-overlay *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Modal Overlay */
.nm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nm-modal-overlay.nm-hidden {
    display: none;
}

/* Modal Container */
.nm-modal-container {
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Modal Header */
.nm-modal-header {
    background: #FCB53A;
    padding: 20px 25px;
    position: relative;
}

.nm-modal-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    text-align: center;
    padding-right: 30px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.nm-close-btn:hover {
    opacity: 0.7;
}

/* Modal Body */
.nm-modal-body {
    padding: 20px 25px;
    background: #ffffff;
}

.nm-promo-text {
    text-align: center;
    color: #1ca6df;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

/* Form Elements */
.nm-form {
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.nm-input-wrapper {
    flex: 1;
}

.nm-input-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    background: #e8e8e8;
    height: 46px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-input-wrapper input::placeholder {
    color: #444;
    font-weight: 500;
}

.nm-input-wrapper input:focus {
    outline: 2px solid #1ca6df;
    outline-offset: -2px;
}

/* Standard form input class (matches form generator) */
.sf-form-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    background: #e8e8e8;
    height: 46px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.sf-form-input::placeholder {
    color: #444;
    font-weight: 500;
}

.sf-form-input:focus {
    outline: 2px solid #1ca6df;
    outline-offset: -2px;
}

/* Checkbox / Opt-in */
.nm-optin-container {
    margin: 5px 0;
}

.nm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.nm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #1ca6df;
    margin-top: 2px;
    cursor: pointer;
}

.nm-checkbox-label span {
    font-size: 12px;
    color: #000000;
    line-height: 1.4;
}

.nm-checkbox-label a,
.nm-privacy-link {
    color: #1ca6df;
    text-decoration: underline;
}

/* Error Messages */
.nm-error-message {
    color: #dc3545;
    font-size: 12px;
    min-height: 16px;
    margin-bottom: 5px;
}

.nm-field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.nm-input-error {
    border: 2px solid #dc3545 !important;
}

/* Buttons */
.nm-btn-primary {
    width: 100%;
    padding: 14px 15px;
    background: #1ca6df;
    color: #ffffff;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    height: 46px;
    margin-bottom: 10px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-btn-primary:hover:not(:disabled) {
    background: #1795c7;
}

.nm-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Profile Section (Step 2) */
.nm-profile-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: none;
}

.nm-profile-section.nm-visible {
    display: block;
}

.nm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.nm-form-group {
    margin-bottom: 10px;
}

.nm-form-group input,
.nm-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    color: #000000;
    background: #e8e8e8;
    height: 46px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-form-group input:focus,
.nm-form-group select:focus {
    outline: 2px solid #1ca6df;
    outline-offset: -2px;
}

.nm-form-group select {
    cursor: pointer;
}

/* Form group with sf-form-input class */
.nm-form-group .sf-form-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    color: #000000;
    background: #e8e8e8;
    height: 46px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-form-group .sf-form-input:focus {
    outline: 2px solid #1ca6df;
    outline-offset: -2px;
}

.nm-form-group select.sf-form-input {
    cursor: pointer;
}

/* Skip Link */
.nm-skip-container {
    text-align: center;
    margin-top: 10px;
}

.nm-skip-link {
    color: #1ca6df;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-skip-link:hover {
    opacity: 0.7;
}

/* Success Message */
.nm-success-message {
    text-align: center;
    padding: 40px 25px;
    display: none;
    background: #ffffff;
}

.nm-success-message.nm-visible {
    display: block;
}

.nm-success-message h2 {
    color: #1ca6df;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

.nm-success-message p {
    color: #000000;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'FaktConTTNormal', Arial, sans-serif;
}

/* Spinner */
.nm-spinner-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    background-color: rgba(255, 255, 255, 0.75);
    display: none;
}

.nm-spinner-container.nm-visible {
    display: block;
}

.nm-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border: 4px solid #e8e8e8;
    border-top: 4px solid #1ca6df;
    border-radius: 50%;
    animation: nm-spin 1s linear infinite;
}

@keyframes nm-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility */
.nm-hidden {
    display: none !important;
}

/* Success Close Button */
.nm-success-message .nm-btn-primary {
    margin-top: 20px;
}

/* ============================================
   DEMO PAGE STYLES (not part of modal widget)
   ============================================ */
body { 
    font-family: 'FaktConTTNormal', Arial, sans-serif;
    background: #f0f0f0; 
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.demo-page {
    text-align: center;
    padding: 60px 20px;
}

.demo-page h1 { 
    margin-bottom: 20px; 
    color: #1ca6df; 
}

.demo-page p { 
    margin-bottom: 15px; 
    color: #666; 
}

.demo-btn {
    background: #1ca6df;
    color: #fff;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.demo-btn:hover { 
    background: #1795c7; 
}

.session-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1ca6df;
    color: #fff;
    padding: 10px 15px;
    font-size: 12px;
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .nm-input-group {
        flex-direction: column;
    }
    
    .nm-form-row {
        grid-template-columns: 1fr;
    }
    
    .nm-modal-header h1 {
        font-size: 22px;
        padding-right: 25px;
    }
}
