/* --- head/contact_style.css --- */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #e8f8f1 0%, #ffffff 100%);
    padding: 50px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.contact-hero h1 {
    font-size: 32px;
    color: #2E8B57;
    margin-bottom: 10px;
    font-weight: 800;
}

.contact-hero p {
    color: #666;
    font-size: 16px;
}

/* Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Info Card */
.contact-info-card {
    background: #2E8B57;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
}

.contact-info-card h3 {
    font-size: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
    color: #a8e6cf;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-item p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    word-break: break-word; /* გრძელი მეილებისთვის */
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 18px;
}

.social-links a:hover {
    background: #fff;
    color: #2E8B57;
    transform: translateY(-3px);
}

/* Form Card */
.contact-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

/* ✅ ახალი კლასი: ველების გვერდიგვერდ განლაგებისთვის */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    box-sizing: border-box; /* მნიშვნელოვანია ზომებისთვის */
}

.form-control:focus {
    border-color: #4CBB8D;
    box-shadow: 0 0 0 3px rgba(76, 187, 141, 0.1);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #4CBB8D;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%; /* მობილურზე კარგად ჩანს */
    max-width: 200px; /* დესკტოპზე არ გაიწელოს */
}

.submit-btn:hover {
    background: #3da076;
    transform: translateY(-2px);
}

/* Alerts */
.alert-success, .alert-error {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Map */
.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- ✅ მობილური ადაპტაცია (Fixes) --- */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* სვეტები ჩამოვარდეს */
    }
    
    .contact-info-card {
        order: 2; /* ინფო ქვემოთ */
        padding: 30px 20px; /* ნაკლები პადინგი */
    }
    
    .contact-form-card {
        order: 1; /* ფორმა ზემოთ */
        padding: 30px 20px; /* ნაკლები პადინგი, რომ ეკრანზე დაეტიოს */
    }
}

@media (max-width: 600px) {
    /* ველები (მეილი და ტელეფონი) ჩამოვარდეს ერთმანეთის ქვემოთ */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-hero {
        padding: 30px 15px;
    }
    
    .contact-hero h1 {
        font-size: 26px;
    }
    
    .submit-btn {
        max-width: 100%; /* ღილაკი გაიწელოს ბოლომდე */
    }
}