* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00f0ff;
    --secondary-color: #bf00ff;
    --accent-color: #ff00ff;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.8);
    --text-light: #ffffff;
    --text-muted: #a0a0c0;
    --error-color: #ff3366;
    --success-color: #00ff88;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated starfield background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCI+CiAgPGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iMSIgZmlsbD0id2hpdGUiLz4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjMwIiByPSIxIiBmaWxsPSJ3aGl0ZSIvPgogIDxjaXJjbGUgY3g9IjgwIiBjeT0iNjAiIHI9IjEiIGZpbGw9IndoaXRlIi8+CiAgPGNpcmNsZSBjeD0iMzAiIGN5PSI4MCIgcj0iMSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+') repeat;
    animation: moveStars 100s linear infinite;
    opacity: 0.5;
}

.stars2 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCI+CiAgPGNpcmNsZSBjeD0iMjAiIGN5PSI0MCIgcj0iMSIgZmlsbD0id2hpdGUiLz4KICA8Y2lyY2xlIGN4PSI3MCIgY3k9IjkwIiByPSIxIiBmaWxsPSJ3aGl0ZSIvPgogIDxjaXJjbGUgY3g9IjEyMCIgY3k9IjIwIiByPSIxIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4=') repeat;
    animation: moveStars 150s linear infinite;
    opacity: 0.3;
}

.stars3 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iMiIgZmlsbD0id2hpdGUiLz4KICA8Y2lyY2xlIGN4PSIxNTAiIGN5PSIxNTAiIHI9IjIiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==') repeat;
    animation: moveStars 200s linear infinite;
    opacity: 0.2;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.app-logo {
    width: 75px;
    height: 75px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.app-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    margin-bottom: 10px;
}

.app-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.form-container {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1),
                inset 0 0 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(191, 0, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    }
}

/* Alert Box */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.alert-box {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.4);
    animation: scaleIn 0.3s ease-out;
    text-align: center;
}

.alert-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}

.alert-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.alert-message {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
}

.alert-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}
    animation: fadeInUp 1s ease-out;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

input[type="email"],
input[type="datetime-local"],
input[type="text"],
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 15px;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
}

.info-icon-small {
    font-size: 16px;
    flex-shrink: 0;
}

.date-info-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

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

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text, .btn-icon {
    position: relative;
    z-index: 1;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.link-btn:hover {
    color: var(--text-light);
}

.otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.otp-header p {
    color: var(--text-muted);
}

.success-container {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInScale 0.5s ease-out;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    animation: successPulse 1s ease-in-out;
}

.success-container h2 {
    color: var(--success-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-container p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.share-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.share-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-btn svg {
    flex-shrink: 0;
}

.twitter-btn {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
}

.twitter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0d5dbf);
}

.facebook-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #1da851);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0A66C2, #004182);
}

.linkedin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.4);
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, var(--success-color), #00cc00);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 25px;
    }
}

/* Flatpickr custom styling for sci-fi theme */
.flatpickr-calendar {
    background: rgba(15, 15, 35, 0.95) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.3) !important;
}

.flatpickr-months {
    background: rgba(0, 240, 255, 0.1) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.flatpickr-weekday {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    color: var(--text-light) !important;
    border: 1px solid transparent !important;
    font-weight: 500 !important;
}

.flatpickr-day:hover {
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-color) !important;
    background: rgba(0, 240, 255, 0.1) !important;
    font-weight: 700 !important;
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border-color: var(--primary-color) !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
}

.flatpickr-day.disabled {
    color: rgba(100, 100, 120, 0.3) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 0.35 !important;
    font-weight: 300 !important;
}

.flatpickr-day.disabled:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 50, 50, 0.4) !important;
    cursor: not-allowed !important;
    color: rgba(100, 100, 120, 0.3) !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.5) !important;
}

.flatpickr-day.nextMonthDay:hover {
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.flatpickr-day.prevMonthDay.disabled {
    color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 0.3 !important;
}

.flatpickr-day.prevMonthDay.disabled:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: var(--primary-color) !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--text-light) !important;
}
