/* Contact Page - 2025 Ultra Modern Design */
.contact-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 20px 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Animated Background - Same as Blog */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.contact-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(3, 171, 197, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 171, 197, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Page Header */
.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.contact-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.contact-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    color: var(--text-primary);
    padding: 4px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Main Content Grid */
.contact-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
    align-self: start;
}

.info-card {
    position: relative;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(3, 171, 197, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(3, 171, 197, 0.4);
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.info-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
}

.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Instagram Gradient */
.social-link:nth-child(1)::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link:nth-child(1):hover {
    border-color: #d6249f;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(214, 36, 159, 0.4);
}

.social-link:nth-child(1):hover::before {
    opacity: 1;
}

.social-link:nth-child(1):hover i {
    color: white;
}

/* Facebook */
.social-link:nth-child(2)::before {
    background: #1877F2;
}

.social-link:nth-child(2):hover {
    border-color: #1877F2;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

.social-link:nth-child(2):hover::before {
    opacity: 1;
}

.social-link:nth-child(2):hover i {
    color: white;
}

/* YouTube */
.social-link:nth-child(3)::before {
    background: #FF0000;
}

.social-link:nth-child(3):hover {
    border-color: #FF0000;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
}

.social-link:nth-child(3):hover::before {
    opacity: 1;
}

.social-link:nth-child(3):hover i {
    color: white;
}

/* WhatsApp */
.social-link:nth-child(4)::before {
    background: #25D366;
}

.social-link:nth-child(4):hover {
    border-color: #25D366;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.social-link:nth-child(4):hover::before {
    opacity: 1;
}

.social-link:nth-child(4):hover i {
    color: white;
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
    padding: 48px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Form Header Top */
.form-header-top {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-title-main {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.form-description-main {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label i {
    font-size: 18px;
}

.form-label .required {
    color: #ff4757;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-select {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(3, 171, 197, 0.1);
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(3, 171, 197, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2303ABC5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    padding-right: 45px;
}

.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px;
    font-size: 15px;
}

html.dark-theme .form-select option,
.dark-theme .form-select option {
    background: #1a1a1a;
    color: white;
}

html.light-theme .form-select option,
.light-theme .form-select option {
    background: white;
    color: #1a1a1a;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Submit Button */
.submit-btn {
    position: relative;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(3, 171, 197, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* Map Section */
.map-section {
    margin-top: 60px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    overflow: hidden;
}

.map-header {
    text-align: center;
    margin-bottom: 32px;
}

.map-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.map-description {
    font-size: 16px;
    color: var(--text-secondary);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
}

/* Map Loading Optimization */
.map-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(3, 171, 197, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: mapSpin 1s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.map-wrapper.loaded::before {
    display: none;
}

@keyframes mapSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success Message */
.success-message {
    display: none;
    padding: 20px;
    background: rgba(46, 213, 115, 0.1);
    border: 2px solid rgba(46, 213, 115, 0.3);
    border-radius: 12px;
    color: #2ed573;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.success-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 120px 16px 60px;
    }

    .contact-header {
        margin-bottom: 60px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-subtitle {
        font-size: 16px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-card {
        padding: 24px;
    }

    .map-section {
        padding: 32px 24px;
    }

    .map-wrapper {
        height: 350px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 100px 12px 40px;
    }

    .contact-badge {
        font-size: 12px;
        padding: 10px 20px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .info-card {
        padding: 20px;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .map-section {
        padding: 24px 16px;
    }

    .map-title {
        font-size: 24px;
    }

    .map-wrapper {
        height: 300px;
    }
}

/* Light Theme Adjustments */
html.light-theme .contact-page,
.light-theme .contact-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

html.light-theme .contact-bg::before,
.light-theme .contact-bg::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(3, 171, 197, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(4, 118, 243, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 80, 0.05) 0%, transparent 50%);
}

html.light-theme .contact-bg::after,
.light-theme .contact-bg::after {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.light-theme .info-card,
.light-theme .contact-form-wrapper,
.light-theme .map-section {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .info-card:hover,
.light-theme .contact-form-wrapper:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
}

.light-theme .form-input,
.light-theme .form-textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

.light-theme .form-input:focus,
.light-theme .form-textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.light-theme .form-select:focus {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.light-theme .form-input::placeholder,
.light-theme .form-textarea::placeholder {
    color: #6c757d;
}

.light-theme .info-item {
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .info-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .social-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Light Theme Social Colors */
.light-theme .social-link:nth-child(1):hover {
    border-color: #d6249f;
    box-shadow: 0 8px 24px rgba(214, 36, 159, 0.3);
}

.light-theme .social-link:nth-child(2):hover {
    border-color: #1877F2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.3);
}

.light-theme .social-link:nth-child(3):hover {
    border-color: #FF0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.light-theme .social-link:nth-child(4):hover {
    border-color: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.light-theme .map-wrapper {
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .map-wrapper iframe {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.light-theme .form-select {
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2303ABC5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    border-color: rgba(3, 171, 197, 0.2);
    color: #1a1a1a;
}



/* Dark Theme Adjustments */

.dark-theme .contact-bg::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.dark-theme .map-wrapper iframe {
    filter: grayscale(30%) contrast(1.2) brightness(0.9);
}