/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(to bottom, #f7fafc, #edf2f7);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: var(--font-size-2xl);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: var(--space-xs);
}

/* Main Content */
.main {
    padding: var(--space-3xl) 0;
}

.form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: var(--space-md);
}

.form-description {
    font-size: var(--font-size-lg);
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
}

.form-container {
    background: var(--card-gradient);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Form Styles */
.ticket-form {
    display: grid;
    gap: var(--space-xl);
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: #2d3748;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.form-label i {
    color: var(--primary-color);
    width: 16px;
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: var(--radius-sm);
}

.form-group.focused .input-border {
    transform: scaleX(1);
}

/* Submit Button */
.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.submit-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--card-gradient);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: var(--font-size-2xl);
    color: white;
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #2d3748;
}

.feature-description {
    color: #718096;
    line-height: 1.6;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    margin-bottom: var(--space-lg);
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
}

.error-icon {
    font-size: 4rem;
    color: var(--error-color);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #2d3748;
}

.modal-message {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-md);
    color: #4a5568;
}

.modal-note {
    font-size: var(--font-size-sm);
    color: #718096;
    margin-bottom: var(--space-lg);
}

.ticket-id {
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.modal-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(-1px);
}

.modal-btn.error-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

/* Ticket Status Styles */
.tickets-container,
.ticket-container {
    margin-top: var(--space-2xl);
}

.tickets-title,
.ticket-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #2d3748;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.ticket-card {
    background: var(--card-gradient);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.ticket-id {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: #4a5568;
}

.ticket-id i {
    color: var(--primary-color);
}

.ticket-status {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-open {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.status-progress {
    background: rgba(66, 153, 225, 0.1);
    color: #2b6cb0;
}

.status-resolved {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.ticket-content {
    margin-bottom: var(--space-md);
}

.ticket-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #2d3748;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.ticket-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.ticket-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: var(--font-size-sm);
    color: #718096;
}

.ticket-category,
.ticket-date {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.no-tickets,
.no-ticket,
.error-message {
    text-align: center;
    padding: var(--space-2xl);
    color: #718096;
}

.no-tickets i,
.no-ticket i,
.error-message i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: #cbd5e0;
}

.no-tickets h4,
.no-ticket h4,
.error-message h4 {
    font-size: var(--font-size-lg);
    color: #4a5568;
    margin-bottom: var(--space-sm);
}

/* Single ticket display */
.single-ticket {
    max-width: 600px;
    margin: 0 auto;
}

.ticket-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Help Section Styles */
.help-section {
    max-width: 800px;
    margin: 0 auto;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #2d3748;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    background: var(--card-gradient);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.05);
}

.faq-question i:first-child {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.faq-question span {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
}

.faq-arrow {
    color: #a0aec0;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: #4a5568;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Contact Section Styles */
.contact-section {
    background: var(--card-gradient);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.contact-item strong {
    color: #2d3748;
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: #4a5568;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .nav {
        gap: var(--space-md);
    }
    
    .nav-link {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    .form-container {
        padding: var(--space-lg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-card {
        text-align: center;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .ticket-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .form-title {
        font-size: var(--font-size-xl);
    }
    
    .modal-content {
        padding: var(--space-lg);
        margin: var(--space-md);
    }
    
    .faq-question {
        padding: var(--space-md);
    }
    
    .faq-question span {
        font-size: var(--font-size-sm);
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animation utilities */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
