/* ===================================
   CONTACT PAGE - TESLA MINIMAL
   Consistent with site dark theme
   =================================== */

/* ===== BODY OVERRIDE ===== */
.contact-body {
    background: #000000;
    color: #ffffff;
}

/* ===== NAVIGATION (DARK VERSION) ===== */
.contact-nav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-nav .logo a {
    color: #ffffff;
}

.contact-nav .nav-menu a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-nav .nav-menu a:hover,
.contact-nav .nav-menu a.active {
    color: #ffffff;
}

/* ===== MAIN CONTAINER ===== */
.contact-main {
    margin-top: 80px;
}

/* ===== CONTAINER SYSTEM ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

/* ===== SECTION 1: HERO ===== */
.section-hero {
    padding-top: 200px;
    padding-bottom: 100px;
    text-align: center;
}

@media (max-width: 768px) {
    .section-hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
}

.hero-title {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
}

.hero-subtext {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-subtext {
        font-size: 18px;
    }
}

/* ===== SECTION 2: CATEGORY SELECTOR ===== */
.section-category {
    padding-top: 80px;
    padding-bottom: 100px;
}

.category-heading {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .category-heading {
        font-size: 26px;
    }
}

.category-subtext {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-subtext {
        font-size: 16px;
    }
}

.spacer-40 {
    height: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.category-card {
    height: 140px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.category-card.selected {
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.category-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.category-card p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.category-error {
    display: none;
    font-size: 14px;
    color: #ff4757;
    text-align: center;
    margin-top: 24px;
    font-weight: 500;
}

.category-error.visible {
    display: block;
}

/* ===== SECTION 3: CONTACT FORM ===== */
.section-form {
    padding-top: 80px;
    padding-bottom: 100px;
    background: linear-gradient(to bottom, #000000, #0a0a0a);
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.required {
    color: #ff4757;
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.form-input.error,
.form-textarea.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.form-textarea {
    height: 160px;
    padding: 18px 20px;
    resize: none;
    line-height: 1.6;
}

.error-text {
    display: none;
    font-size: 13px;
    color: #ff4757;
    margin-top: 8px;
}

.error-text.visible {
    display: block;
}

/* ===== SECTION 4: CONSENT + SUBMIT ===== */
.form-consent {
    margin-top: 48px;
    margin-bottom: 40px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ffffff;
}

.consent-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    margin-left: 32px;
}

.form-submit {
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 240px;
    height: 56px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.submit-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-spinner {
    display: block !important;
}

@media (max-width: 768px) {
    .submit-btn {
        width: 100%;
    }
}

/* Spinner Animation */
.spinner {
    animation: rotate 1s linear infinite;
}

.spinner-circle {
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ===== SECTION 5: SUCCESS STATE ===== */
.section-success {
    padding: 200px 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.section-success.visible {
    opacity: 1;
}

.success-content {
    max-width: 700px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.success-icon svg {
    animation: checkmark 0.8s ease;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .success-title {
        font-size: 32px;
    }
}

.success-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
}

.success-btn {
    display: inline-block;
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInCard 0.6s ease forwards;
}

.fade-in-card.delay-0 { animation-delay: 0s; }
.fade-in-card.delay-1 { animation-delay: 0.1s; }
.fade-in-card.delay-2 { animation-delay: 0.2s; }
.fade-in-card.delay-3 { animation-delay: 0.3s; }
.fade-in-card.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInForm 0.6s ease forwards;
}

.fade-in-form.delay-0 { animation-delay: 0s; }
.fade-in-form.delay-1 { animation-delay: 0.1s; }
.fade-in-form.delay-2 { animation-delay: 0.2s; }
.fade-in-form.delay-3 { animation-delay: 0.3s; }
.fade-in-form.delay-4 { animation-delay: 0.4s; }
.fade-in-form.delay-5 { animation-delay: 0.5s; }

@keyframes fadeInForm {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER (DARK VERSION) ===== */
.contact-footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 48px;
}

.contact-footer p {
    color: rgba(255, 255, 255, 0.6);
}

.contact-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-footer a:hover {
    color: #ffffff;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-card,
    .fade-in-form,
    .success-icon svg,
    .submit-btn,
    .category-card {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}
