/* Contact Section Styles */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(15, 15, 15, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 86, 214, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Contact Header */
.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-badge {
    display: inline-block;
    position: relative;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

.contact-badge .badge-text {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-badge .badge-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.2), transparent);
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-title .title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-description {
    font-size: 1.25rem;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Main */
.contact-main {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 4rem;
    align-items: stretch;
}

/* Contact Form Section */
.contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #71717a;
}

.form-select {
    cursor: pointer;
    appearance: none;
    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='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-select option {
    background: #18181b;
    color: #ffffff;
    padding: 0.5rem;
}

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

.form-error {
    color: #ef4444;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-error.show {
    opacity: 1;
}

/* Checkbox Styles */
.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-top: 10px;
}

.form-checkbox {
    display: none;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    flex-wrap: wrap;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-checkbox:checked + .form-checkbox-label .checkbox-custom {
    background: #007AFF;
    border-color: #007AFF;
}

.form-checkbox:checked + .form-checkbox-label .checkbox-custom::after {
    opacity: 1;
}

.checkbox-link {
    color: #007AFF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-link:hover {
    color: #0056CC;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-submit {
    background: #007AFF;
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2.5rem;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

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

.form-submit.loading {
    pointer-events: none;
}

.submit-text,
.submit-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.submit-loading {
    display: none;
}

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

.form-submit.loading .submit-loading {
    display: flex;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

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

.form-submit:hover .submit-icon {
    transform: translateX(2px);
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-info-header {
    text-align: center;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.info-subtitle {
    color: #a1a1aa;
    font-size: 0.95rem;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.info-description {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.4;
}

/* Contact CTA */
.contact-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cta-description {
    font-size: 0.9rem;
    color: #a1a1aa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button-primary {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #ffffff;
}

.cta-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 1150px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .contact-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .contact-info-grid {
        gap: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-description {
        font-size: 1.1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-grid {
        gap: 0.75rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .info-icon {
        align-self: center;
    }
    
    .form-checkbox-label {
        font-size: 0.85rem;
        line-height: 1.5;
        gap: 0.5rem;
    }
    
    .checkbox-custom {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
} 