/* Contact Page Specific Styles */

/* Contact Hero */
.contact-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    background: var(--dark-bg);
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00ffcc, #0066ff);
    top: -100px;
    left: -100px;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff00ff, #ff6600);
    bottom: -150px;
    right: -150px;
    animation: float-2 25s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-3 15s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, 30px) rotate(120deg); }
    66% { transform: translate(20px, -20px) rotate(240deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.contact-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Main Section */
.contact-main {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form-wrapper:hover::before {
    opacity: 0.1;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--muted-text);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group-full {
    grid-column: span 2;
}

.form-input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--muted-text);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-select:valid ~ .form-label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: var(--accent-cyan);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.form-input:focus ~ .form-line {
    width: 100%;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23a0a0a0" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 2rem;
}

.form-select option {
    background: var(--dark-surface);
    color: var(--light-text);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    grid-column: span 2;
    padding: 1.2rem 2.5rem;
    background: var(--primary-gradient);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit::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;
}

.form-submit:hover::before {
    width: 400px;
    height: 400px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

.submit-arrow {
    transition: transform 0.3s ease;
}

.form-submit:hover .submit-arrow {
    transform: translateX(5px);
}

.form-response {
    grid-column: span 2;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-response.success {
    display: block;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: var(--accent-cyan);
}

.form-response.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

/* Contact Information */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.quick-contact,
.office-location,
.social-links {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.quick-contact:hover,
.office-location:hover,
.social-links:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.1);
}

.info-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--muted-text);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent-cyan);
}

.office-address {
    color: var(--muted-text);
    line-height: 1.8;
    font-style: normal;
    margin-bottom: 2rem;
}

.office-hours {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hours-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.time {
    color: var(--light-text);
    font-weight: 500;
}

.social-grid {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.3);
}

/* Map Section */
.map-section {
    position: relative;
    height: 450px;
    margin-top: 100px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(90%) contrast(1.2) opacity(0.7);
    transition: all 0.3s ease;
}

.map-container:hover .map-iframe {
    filter: grayscale(0%) contrast(1) opacity(1);
}

.map-overlay {
    position: absolute;
    top: 50px;
    left: 50px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    max-width: 300px;
    opacity: 0.95;
}

.map-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-text {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    gap: 0.75rem;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-overlay {
        top: 30px;
        left: 30px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
    
    .form-submit {
        grid-column: span 1;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .map-overlay {
        position: static;
        max-width: 100%;
        border-radius: 0;
        margin-top: -50px;
        z-index: 2;
        position: relative;
    }
    
    .map-section {
        height: 550px;
    }
}