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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow-x: hidden;
}

/* Contact Container */
.contact-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (reusing from dashboard) */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h2 {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand .brand-logo {
    height: 80px;
    width: auto;
    max-width: 150px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    border-right: 3px solid #00d4ff;
}

.nav-link svg {
    flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.lang-btn {
    color: #aaa;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 99, 99, 0.1);
    color: #ff6363;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 99, 99, 0.2);
    transform: translateY(-1px);
}

/* Public Header (for non-logged users) */
.public-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand a {
    text-decoration: none;
}

.brand a .brand-logo {
    height: 65px;
    width: auto;
    max-width: 180px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav .nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.header-nav .nav-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.header-nav .nav-link.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
}

.header-nav .nav-link.register {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff !important;
    border-radius: 25px;
    padding: 10px 20px;
}

.header-nav .nav-link.register:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content:not(.full-width) {
    margin-left: 280px;
}

/* Content Header (for logged users) */
.content-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-sidebar-toggle {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: none;
}

.mobile-sidebar-toggle:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.page-subtitle {
    color: #ccc;
    font-size: 0.95rem;
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
}

.main-content.full-width .content-body {
    padding: 0;
}

/* Contact Hero */
.contact-hero {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.main-content.full-width .contact-hero {
    margin: 0;
    border-radius: 0;
    padding: 80px 30px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content.full-width .contact-layout {
    padding: 0 30px;
}

/* Contact Form Section */
.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.form-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

.alert-error {
    background: rgba(255, 99, 99, 0.12);
    border: 1px solid rgba(255, 99, 99, 0.3);
    color: #ff6363;
}

.alert-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper, .textarea-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #aaa;
    z-index: 2;
    pointer-events: none;
}

.textarea-wrapper .input-icon {
    top: 18px;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 16px 18px 16px 52px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.textarea-wrapper textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 16px 18px 16px 52px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.input-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
    color: #666;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 14px;
    padding: 18px 30px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

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

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

/* Contact Info Section */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    height: fit-content;
}

.info-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    flex-shrink: 0;
}

.method-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.method-content p {
    color: #00d4ff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.method-content span {
    color: #aaa;
    font-size: 0.85rem;
}

/* Services Highlight */
.services-highlight {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.services-highlight h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.services-highlight ul {
    list-style: none;
}

.services-highlight li {
    color: #ccc;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.services-highlight li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

/* Input Validation Styles */
.input-wrapper input.error,
.textarea-wrapper textarea.error {
    border-color: #ff6363 !important;
    box-shadow: 0 0 0 3px rgba(255, 99, 99, 0.1) !important;
}

.input-wrapper input.success,
.textarea-wrapper textarea.success {
    border-color: #66bb6a !important;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-card {
        order: -1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content:not(.full-width) {
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .header-nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-nav.active {
        left: 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .content-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .content-body {
        padding: 20px 15px;
    }

    .main-content.full-width .content-body {
        padding: 0;
    }

    .main-content.full-width .contact-layout {
        padding: 0 20px;
    }

    .contact-hero {
        padding: 40px 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .form-card, .info-card {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-methods {
        gap: 20px;
    }

    .contact-method {
        padding: 15px;
    }

    .method-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .contact-hero {
        padding: 30px 15px;
    }

    .form-card, .info-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .input-wrapper input,
    .textarea-wrapper textarea {
        padding: 14px 16px 14px 48px;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 16px 25px;
        font-size: 1rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

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

.form-card {
    animation: fadeInUp 0.6s ease forwards;
}

.info-card {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.contact-method {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.contact-method:nth-child(1) { animation-delay: 0.4s; }
.contact-method:nth-child(2) { animation-delay: 0.5s; }
.contact-method:nth-child(3) { animation-delay: 0.6s; }

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Focus states for accessibility */
.nav-link:focus-visible,
.btn-primary:focus-visible,
.lang-btn:focus-visible,
.logout-btn:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.input-wrapper input:focus-visible,
.textarea-wrapper textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Loading state for form */
.contact-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Character counter for textarea */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ffa726;
}

.char-counter.error {
    color: #ff6363;
}