/* StayLit.pro Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #39ff14;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd012;
}

/* Glow text effect */
.glow-text {
    text-shadow:
        0 0 10px rgba(57, 255, 20, 0.5),
        0 0 20px rgba(57, 255, 20, 0.3),
        0 0 30px rgba(57, 255, 20, 0.2);
}

/* Primary button styles */
.btn-primary {
    background: linear-gradient(135deg, #39ff14 0%, #2dd012 100%);
    color: #0a0a0a;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form input focus glow */
input:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.1);
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Pulse animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(57, 255, 20, 0.5);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form messages */
.form-success {
    background-color: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #39ff14;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.form-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .glow-text {
        text-shadow:
            0 0 5px rgba(57, 255, 20, 0.5),
            0 0 10px rgba(57, 255, 20, 0.3);
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Section entrance animations */
section {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }

/* Phone number link styling */
a[href^="tel:"] {
    white-space: nowrap;
}

/* Trust badge styling */
.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: #39ff14;
    background-color: rgba(57, 255, 20, 0.05);
}

/* Select dropdown styling for dark theme */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

select option {
    background-color: #0a0a0a;
    color: white;
}

/* Input validation states */
input:invalid:not(:placeholder-shown),
select:invalid:not([value=""]) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
select:valid:not([value=""]) {
    border-color: #39ff14;
}

/* Number input - hide spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}
