/* CSS Variables */
:root {
    --primary-navy: #0D2C54;
    --secondary-slate: #6C7A89;
    --accent-gold: #FFB700;
    --neutral-off-white: #F8F9FA;
    --neutral-white: #FFFFFF;
    --neutral-dark: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
body>div:first-of-type {
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #ffb700 0%, #ff9500 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 183, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
}

.password-toggle:hover {
    color: #374151;
}

/* RTL tweaks (Hebrew) */
html[dir="rtl"] .password-toggle {
    right: auto;
    left: 12px;
}

html[dir="rtl"] #password {
    padding-right: 1rem !important;
    padding-left: 3rem !important;
}

html[dir="rtl"] #marketingConsent {
    margin-right: 0 !important;
    margin-left: 0.75rem !important;
}

html[dir="rtl"] #userCount {
    padding-right: 1rem !important;
    padding-left: 4rem !important;
}

html[dir="rtl"] #user-count-container .absolute.inset-y-0.right-0 {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] #user-count-container .absolute.inset-y-0.right-0 button {
    border-left: none !important;
    border-right: 1px solid #d1d5db !important;
    /* border-gray-300 */
}

/* Select dropdown styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Style for placeholder option (gray text) */
select option[value=""] {
    color: #9ca3af;
}

/* Style for selected options (normal black text) */
select option:not([value=""]) {
    color: #111827;
}

/* User count input styling */
#userCount {
    -moz-appearance: textfield;
    appearance: textfield;
}

#userCount::-webkit-outer-spin-button,
#userCount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* User count button styling */
#user-count-up:disabled,
#user-count-down:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#user-count-up:disabled:hover,
#user-count-down:disabled:hover {
    background-color: transparent;
    color: #9ca3af;
}

.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #ffb700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer Styles */
.footer {
    background: var(--neutral-dark);
    color: var(--neutral-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--neutral-off-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    padding-bottom: 1rem;
    text-align: center;
    color: var(--secondary-slate);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Language switcher (copied from site header styles) */
.signup-language-switcher {
    margin: 0;
}

.language-switcher {
    margin: 0;
    position: relative;
}

.language-dropdown {
    position: relative;
    cursor: pointer;
}

.language-current {
    color: #ffb700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-user-select: none;
    user-select: none;
}

.language-current::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-option {
    color: #333;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: #007bff;
    color: white;
}

/* RTL positioning */
html[dir="rtl"] .language-options {
    right: auto;
    left: 0;
}