/* contact.css - ASHIVA İletişim Sayfası Özel Stilleri */

/* Base Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contact Hero Section */
.contact-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) sepia(10%) saturate(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 80, 32, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.contact-hero .hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.contact-hero .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 1rem;
}

.contact-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact.section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 80, 32, 0.2);
    box-shadow: 0 15px 40px rgba(33, 80, 32, 0.12);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #215020 0%, #2d6b2d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-card:hover .icon-box {
    transform: scale(1.1);
}

.icon-box svg {
    fill: currentColor;
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #215020;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.contact-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #215020;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    height: 550px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(33, 80, 32, 0.1);
    height: fit-content;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #215020;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.form-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: rgba(33, 80, 32, 0.1);
    color: #215020;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(33, 80, 32, 0.2);
}

/* Form Styles */
.php-email-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #215020;
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 80, 32, 0.1);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

select.form-control {
    cursor: pointer;
    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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 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;
    appearance: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Form States */
.my-3 {
    margin: 2rem 0;
}

.loading {
    display: none;
    background: rgba(33, 80, 32, 0.1);
    color: #215020;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.loading.show {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(33, 80, 32, 0.3);
    border-top: 2px solid #215020;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    display: none;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-message.show {
    display: block;
}

.sent-message {
    display: none;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.sent-message.show {
    display: flex;
}

.sent-message svg {
    fill: currentColor;
    flex-shrink: 0;
}

/* Form Submit */
.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.submit-btn {
    background: linear-gradient(135deg, #215020 0%, #2d6b2d 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(33, 80, 32, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2d6b2d 0%, #215020 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(33, 80, 32, 0.4);
}

.submit-btn svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

/* Form Info */
.form-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    background: rgba(33, 80, 32, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(33, 80, 32, 0.1);
}

.info-item svg {
    fill: #215020;
    flex-shrink: 0;
}

/* Services Preview Section */
.services-preview-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #215020 0%, #2d6b2d 100%);
    color: white;
}

.services-preview-section .section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 1px;
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.service-icon svg {
    fill: currentColor;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-main-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-section {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }

    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .contact-hero .hero-title {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .services-preview-section .section-title {
        font-size: 2rem;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .contact-hero {
        height: 80vh;
    }

    .contact-hero .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .contact.section,
    .services-preview-section {
        padding: 4rem 0;
    }

    .contact-form-container {
        padding: 2rem;
        border-radius: 15px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .icon-box {
        width: 60px;
        height: 60px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .map-container {
        height: 300px;
    }

    .form-submit .submit-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero .hero-title {
        font-size: 2rem;
    }

    .services-preview-section .section-title,
    .form-header h3 {
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .service-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Form Validation Animations */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.form-control.error {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

.form-control.success {
    border-color: #28a745;
}

/* Loading State for Submit Button */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* Form Success Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sent-message.show {
    animation: slideInUp 0.5s ease-out;
}