/* 
 * AXON Waitlist Styles 
 * Primary Action: Emerald Green (#1d683d)
 * Backgrounds/Accents: Sandstone Beige (#e8d8be)
 * Font: Almarai
 */

.axon-waitlist-wrapper {
    font-family: 'Almarai', sans-serif;
    color: #333;
    max-width: 600px;
    margin: 40px auto;
    position: relative;
    box-sizing: border-box;
}

.axon-waitlist-wrapper * {
    box-sizing: border-box;
}

/* Glassmorphism Container */
.axon-glass-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* FOMO Badge */
.axon-fomo-badge {
    background: #e8d8be;
    color: #554832;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    display: inline-block;
}

.axon-form-header {
    text-align: right;
    margin-bottom: 30px;
}

.axon-form-header h2 {
    color: #1d683d;
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 8px;
}

.axon-form-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

/* Form Elements */
.axon-input-group {
    margin-bottom: 20px;
    text-align: right;
}

.axon-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #444;
}

.axon-input-group input[type="text"],
.axon-input-group input[type="tel"],
.axon-input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.axon-input-group input:focus,
.axon-input-group select:focus {
    outline: none;
    border-color: #1d683d;
    box-shadow: 0 0 0 3px rgba(29, 104, 61, 0.1);
}

/* Phone Wrapper with Flag */
.axon-phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.axon-flag-prefix {
    position: absolute;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.axon-phone-wrapper input {
    padding-right: 90px;
    direction: ltr;
    /* Keeping phone numbers LTR is good practice */
}

/* Buttons & Toggles */
.axon-user-type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.axon-radio-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #555;
    transition: all 0.3s ease;
}

.axon-radio-btn input {
    display: none;
}

.axon-radio-btn.active {
    border-color: #1d683d;
    background: rgba(29, 104, 61, 0.05);
    color: #1d683d;
}

.axon-hidden-section {
    display: none;
}

/* Checkboxes */
.axon-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.axon-checkbox-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Branch Repeaters */
.axon-branch-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.axon-remove-branch-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.axon-btn-secondary {
    display: block;
    background: transparent;
    border: 1px dashed #1d683d;
    color: #1d683d;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.axon-btn-secondary:hover {
    background: rgba(29, 104, 61, 0.05);
}

/* Primary Button */
.axon-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #1d683d !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px;
    width: 100%;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.axon-btn-primary:hover {
    background-color: #15512f !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 104, 61, 0.3);
}

.axon-btn-primary:active {
    transform: translateY(0);
}

.axon-btn-primary.loading {
    color: transparent;
    pointer-events: none;
}

/* Loader Liquid Glass Style */
.axon-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: axon-spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes axon-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Toast */
.axon-toast {
    background: rgba(255, 77, 77, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Success State */
.axon-success-state {
    text-align: center;
    padding: 40px 20px;
}

.axon-check-circle {
    width: 60px;
    height: 60px;
    background: #1d683d;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    line-height: 60px;
    margin: 0 auto 20px;
    font-weight: bold;
}

.axon-success-state h3 {
    color: #1d683d;
    margin-bottom: 10px;
}

.axon-success-state p {
    color: #666;
}

/* SlimSelect RTL Support */
.ss-main {
    direction: rtl;
    text-align: right;
}

.ss-main .ss-single-selected {
    text-align: right;
}

.ss-main .ss-search input {
    text-align: right;
    direction: rtl;
}

.ss-list .ss-option {
    text-align: right;
    direction: rtl;
}