/* ─── SpaceArcade – Notify Me When Available: Frontend Styles ──────────────
   Theme: spacearcade.in
   Background : #ffffff (white)
   Primary CTA: #f5a623 (gold/amber) — matches site's main button colour
   Dark accent : #0d2b5e (deep navy) — matches site header/nav
   Text        : #222222
   Border      : #dddddd
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── Notify Me Button ─────────────────────────────────────────────────────── */
.sa-notify-wrap {
    margin: 14px 0 0;
    display: block;
    clear: both;
    width: 100%;
}

.sa-notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f5a623;
    color: #1a1a1a;
    border: 2px solid #f5a623;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1.4;
    font-family: inherit;
    box-shadow: none;
}

.sa-notify-btn:hover {
    background-color: #e09718;
    border-color: #e09718;
    color: #1a1a1a;
}

.sa-notify-btn svg {
    flex-shrink: 0;
    color: #1a1a1a;
}

/* ─── Overlay ──────────────────────────────────────────────────────────────── */
.sa-notify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: sa-fade-in 0.2s ease;
}

.sa-notify-overlay[hidden] {
    display: none !important;
}

@keyframes sa-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Modal Box ────────────────────────────────────────────────────────────── */
.sa-notify-modal {
    position: relative;
    background: #ffffff;
    color: #222222;
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    padding: 40px 36px 32px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    border-top: 5px solid #f5a623;
    animation: sa-slide-up 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes sa-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.sa-notify-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    padding: 0;
    line-height: 1;
}

.sa-notify-close:hover {
    color: #111;
    background: #ebebeb;
    border-color: #ccc;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.sa-notify-header {
    text-align: center;
    margin-bottom: 24px;
}

.sa-notify-icon {
    font-size: 34px;
    margin-bottom: 10px;
    line-height: 1;
}

.sa-notify-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #0d2b5e;
    margin: 0 0 8px;
    line-height: 1.3;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.sa-notify-header p {
    font-size: 13.5px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Form Groups ──────────────────────────────────────────────────────────── */
.sa-form-group {
    margin-bottom: 16px;
}

.sa-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: inherit;
}

.sa-form-group label span {
    color: #d9534f;
}

.sa-form-group input {
    width: 100%;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 10px 13px;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    font-family: inherit;
}

.sa-form-group input::placeholder {
    color: #aaa;
}

.sa-form-group input:focus {
    border-color: #0d2b5e;
    box-shadow: 0 0 0 3px rgba(13, 43, 94, 0.12);
    background: #fafbff;
}

.sa-form-group input.sa-error {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

/* Phone field with +91 prefix */
.sa-phone-wrap {
    display: flex;
    align-items: stretch;
}

.sa-phone-prefix {
    background: #0d2b5e;
    border: 1.5px solid #0d2b5e;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 10px 12px;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1;
    font-family: inherit;
}

.sa-phone-wrap input {
    border-radius: 0 4px 4px 0;
    flex: 1;
}

/* Field errors */
.sa-field-error {
    display: block;
    font-size: 12px;
    color: #d9534f;
    margin-top: 4px;
    min-height: 15px;
    font-family: inherit;
}

/* Privacy note */
.sa-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #888;
    margin-bottom: 18px;
    line-height: 1.5;
}

.sa-privacy-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #0d2b5e;
}

/* Success / Error messages */
.sa-notify-message {
    display: none;
    padding: 11px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.5;
    font-family: inherit;
}

.sa-notify-message.sa-msg-success {
    display: block;
    background: #eaf6ed;
    border: 1px solid #5cb85c;
    color: #2d6a31;
}

.sa-notify-message.sa-msg-error {
    display: block;
    background: #fdf2f2;
    border: 1px solid #d9534f;
    color: #a02020;
}

/* ─── Submit Button ────────────────────────────────────────────────────────── */
.sa-notify-submit-btn {
    width: 100%;
    background-color: #f5a623;
    color: #1a1a1a;
    border: 2px solid #f5a623;
    border-radius: 4px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    margin-top: 4px;
}

.sa-notify-submit-btn:hover:not(:disabled) {
    background-color: #e09718;
    border-color: #e09718;
    transform: translateY(-1px);
}

.sa-notify-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.sa-notify-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner — hidden by default via inline style AND this CSS rule (double safety) */
.sa-btn-loader {
    display: none;
    align-items: center;
}

.sa-btn-loader.sa-visible {
    display: flex;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .sa-notify-modal {
        padding: 28px 18px 22px;
    }

    .sa-notify-header h2 {
        font-size: 18px;
    }
}
