/* KOMPAKT CONTACT PAGE CSS */

/* Ana Bölüm */
.compact-contact-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.compact-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2354af32" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.compact-contact-section .container {
    position: relative;
    z-index: 1;
}

/* Başlık Bölümü */
.contact-header {
    margin-bottom: 50px;
}

.contact-badge {
    display: inline-block;
    background: rgba(84, 175, 50, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 2px solid rgba(84, 175, 50, 0.2);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-title .text-primary {
    color: var(--primary-color) !important;
    position: relative;
}

.contact-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #54AF32 0%, #45a028 100%);
    border-radius: 2px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--subtitle-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Kartı */
.contact-form-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(84, 175, 50, 0.1);
    height: 100%;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--subtitle-color);
    margin: 0;
    font-size: 0.95rem;
}

/* Form Stilleri */
.compact-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.compact-form .form-control {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    background: var(--white-color);
    transition: all 0.3s ease;
    outline: none;
    font-family: "DM Sans", sans-serif;
    color: var(--main-color);
}

.compact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 175, 50, 0.1);
    background: #fafbfc;
}

.compact-form .form-control::placeholder {
    color: var(--subtitle-color);
    opacity: 0.7;
}

.compact-form .form-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: var(--subtitle-color);
    transition: all 0.3s ease;
    z-index: 1;
}

.compact-form .form-control:focus ~ .form-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.compact-form select.form-control {
    cursor: pointer;
}

.compact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* International Telephone Input Styling */
.phone-input-group {
    position: relative;
}

.phone-input-group .iti {
    width: 100%;
    display: block;
}

.phone-input-group .iti__flag-container {
    right: auto;
    left: 0;
    padding: 0;
    border-right: 1px solid #e9ecef;
    border-radius: 12px 0 0 12px;
}

.phone-input-group .iti__selected-flag {
    padding: 0 8px 0 12px;
    height: 100%;
    background: #f8f9fa;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.phone-input-group .iti__selected-flag:hover {
    background: #e9ecef;
}

.phone-input-group .iti__arrow {
    border-top-color: #6c757d;
    margin-left: 4px;
}

.phone-input-group .iti input[type=tel] {
    padding-left: 60px !important;
    padding-right: 15px !important;
    border-radius: 12px !important;
}

.phone-input-group .iti__country-list {
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    max-height: 250px;
    z-index: 1000;
    margin-top: 5px;
}

/* Search input in country list */
.phone-input-group .iti__search-input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    outline: none;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.phone-input-group .iti__search-input:focus {
    background: #ffffff;
    border-bottom-color: var(--primary-color);
}

.phone-input-group .iti__search-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.phone-input-group .iti__country {
    padding: 10px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.phone-input-group .iti__country:last-child {
    border-bottom: none;
}

.phone-input-group .iti__country:hover {
    background-color: rgba(84, 175, 50, 0.1);
}

.phone-input-group .iti__country.iti__highlight {
    background-color: rgba(84, 175, 50, 0.15);
}

.phone-input-group .iti__country-name {
    color: var(--heading-color);
    margin-right: 8px;
    font-weight: 500;
}

.phone-input-group .iti__dial-code {
    color: var(--primary-color);
    font-weight: 600;
}

.phone-input-group .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags.png");
    border-radius: 2px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-input-group .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags@2x.png");
    }
}

/* Form validation states for phone input */
.phone-input-group.error .iti input[type=tel] {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.phone-input-group.error .iti__selected-flag {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.phone-input-group.valid .iti input[type=tel] {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(84, 175, 50, 0.1) !important;
}

.phone-input-group.valid .iti__selected-flag {
    border-color: var(--primary-color);
    background: rgba(84, 175, 50, 0.05);
}

.phone-input-group.focused .iti__selected-flag {
    background: rgba(84, 175, 50, 0.05);
    border-color: var(--primary-color);
}

.phone-input-group.focused .iti input[type=tel] {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(84, 175, 50, 0.1) !important;
}

/* Submit Butonu */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #45a028);
    color: var(--white-color);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(84, 175, 50, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 175, 50, 0.4);
    background: linear-gradient(135deg, #45a028, var(--primary-color));
}

.btn-submit:active {
    transform: translateY(0);
}

/* İletişim Bilgileri Kartı */
.contact-info-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(84, 175, 50, 0.1);
    height: 100%;
}

.info-header {
    margin-bottom: 30px;
    text-align: center;
}

.info-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.info-header p {
    color: var(--subtitle-color);
    margin: 0;
    font-size: 0.95rem;
}

/* İletişim Detayları */
.contact-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(84, 175, 50, 0.02);
    border: 1px solid rgba(84, 175, 50, 0.1);
}

.detail-item:hover {
    background: rgba(84, 175, 50, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(84, 175, 50, 0.1);
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #45a028);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 18px;
    flex-shrink: 0;
}

.detail-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.detail-content p {
    color: var(--subtitle-color);
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

/* Hızlı Aksiyonlar */
.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-btn:hover {
    background: #45a028;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 175, 50, 0.3);
}

.quick-btn i {
    font-size: 16px;
}

/* Harita Konteyner */
.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(84, 175, 50, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* Form Mesajları */
.form-messages {
    margin-top: 20px;
}

.form-alert {
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Responsive Tasarım */
@media (max-width: 991px) {
    .compact-contact-section {
        padding: 100px 0 60px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .compact-contact-section {
        padding: 80px 0 50px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 25px;
    }
    
    .compact-form .form-control {
        padding: 12px 45px 12px 12px;
        font-size: 14px;
    }
    
    .compact-form .form-icon {
        top: 12px;
        right: 12px;
        font-size: 16px;
    }
    
    .btn-submit {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .detail-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .detail-icon {
        margin-bottom: 10px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 20px;
    }
    
    .form-header h3,
    .info-header h3 {
        font-size: 1.3rem;
    }
    
    .detail-content h5 {
        font-size: 0.9rem;
    }
    
    .detail-content p {
        font-size: 13px;
    }
    
    .quick-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Loading Durumu */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading span::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Form Validasyon */
.form-group.error .form-control {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group.error .form-icon {
    color: #dc3545 !important;
}

/* Hover Efektleri */
.contact-form-card:hover,
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Focus Durumları */
.btn-submit:focus,
.quick-btn:focus {
    outline: 3px solid rgba(84, 175, 50, 0.3);
    outline-offset: 2px;
}

.compact-form .form-control:focus {
    outline: none;
}

/* Animated Logo Section */
.animated-logo-section {
    margin-top: 30px;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(84, 175, 50, 0.05), rgba(84, 175, 50, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(84, 175, 50, 0.1);
    overflow: hidden;
}

.logo-container {
    position: relative;
    display: inline-block;
}

/* GWA Logo Styling */
.gwa-logo {
    position: relative;
    z-index: 2;
}

.gwa-logo svg {
    width: 586px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(84, 175, 50, 0.3));
    transition: all 0.3s ease;
    position: relative;
    left: -150px;
}

.gwa-logo:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(84, 175, 50, 0.4));
}

/* Letter Glow Animation */
#letter-g {
    animation: letterGlow 3s ease-in-out infinite;
    animation-delay: 0s;
}

#letter-w {
    animation: letterGlow 3s ease-in-out infinite;
    animation-delay: 1s;
}

#letter-a {
    animation: letterGlow 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes letterGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
        opacity: 0.9;
    }
}

/* Floating Stars */
.floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #54af32, #45a028);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(84, 175, 50, 0.8), 0 0 20px rgba(84, 175, 50, 0.6);
    animation: floatingStar 8s linear infinite;
}

.star::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(84, 175, 50, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: starPulse 2s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.star-2 {
    top: 60%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.star-3 {
    top: 80%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.star-4 {
    top: 30%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.star-5 {
    top: 70%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.star-6 {
    top: 40%;
    animation-delay: 5s;
    animation-duration: 9s;
}

@keyframes floatingStar {
    0% {
        left: -10px;
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 10px);
        opacity: 0;
        transform: translateY(-20px) rotate(360deg);
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Neon Border Effect */
.animated-logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background-size: 400% 400%;
    animation: neonBorder 4s ease-in-out infinite;
    z-index: 0;
}

.animated-logo-section::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(84, 175, 50, 0.05), rgba(84, 175, 50, 0.02));
    border-radius: 18px;
    z-index: 1;
}

@keyframes neonBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Design for Logo Section */
@media (max-width: 767px) {
    .animated-logo-section {
        margin-top: 20px;
        padding: 30px 15px;
    }
    
    .gwa-logo svg {
        width: 150px;
    }
    
    .star {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .animated-logo-section {
        padding: 25px 10px;
    }
    
    .gwa-logo svg {
        width: 307px;
        left: -76px;
  
    }
    
    .star {
        width: 2px;
        height: 2px;
    }
}
