/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

/* =========================================
   LIGHT PREMIUM HERO STYLES (ERGO VIBE)
   ========================================= */

.contact-hero-light {
    background-color: #ffffff; /* Καθαρό λευκό */
    position: relative;
    overflow: hidden;
    
    /* Ύψος και στοίχιση */
    min-height: 70vh; 
    padding-top: 140px; 
    padding-bottom: 80px;
    
    display: flex;
    align-items: center;
}

/* Διακριτικό γκρι σχήμα στο φόντο (πάνω δεξιά) */
.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: #f4f6f8; /* Πολύ απαλό γκρι-μπλε (σαν της ERGO περίπου αλλά πιο ουδέτερο) */
    z-index: 1;
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%); /* Κόψιμο διαγώνιο */
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2; /* Πάνω από το background shape */
}

/* --- ΑΡΙΣΤΕΡΗ ΠΛΕΥΡΑ (ΚΕΙΜΕΝΟ) --- */
.hero-text-content {
    max-width: 600px;
}

.premium-badge {
    display: inline-block;
    background-color: rgba(138, 13, 45, 0.1); /* Απαλό κόκκινο φόντο */
    color: var(--ergo-red);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a; /* Σκούρο γκρι, σχεδόν μαύρο */
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-text-content p {
    font-size: 1.2rem;
    color: #555; /* Μεσαίο γκρι για το κείμενο */
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Quick Contact Links (Μικρά κουμπάκια) */
.hero-quick-contact {
    display: flex;
    gap: 30px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.3s, color 0.3s;
}

.quick-link:hover {
    color: var(--ergo-red);
    transform: translateY(-2px);
}

.quick-icon {
    width: 45px;
    height: 45px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ergo-red);
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: background 0.3s, color 0.3s;
}

.quick-link:hover .quick-icon {
    background-color: var(--ergo-red);
    color: #fff;
}

/* --- ΔΕΞΙΑ ΠΛΕΥΡΑ (ΕΙΚΟΝΑ) --- */
.hero-visual-content {
    position: relative;
    padding-left: 20px; /* Χώρος για το εφε */
}

.image-frame {
    position: relative;
    border-radius: 20px; /* Πιο μοντέρνες, στρογγυλεμένες γωνίες */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); /* Απαλή σκιά, όχι σκληρή */
    z-index: 2;
    aspect-ratio: 4/3; /* Σταθερή αναλογία εικόνας */
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Καθόλου φίλτρα τώρα, θέλουμε καθαρά χρώματα */
    transition: transform 0.6s ease;
}

.hero-visual-content:hover img {
    transform: scale(1.05);
}

/* Διακοσμητικό Pattern (Τελείες) πίσω από την εικόνα */
.dots-pattern {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(#ccc 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: 1;
    opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .contact-hero-light {
        min-height: auto;
        padding-top: 120px;
    }

    .hero-grid-layout {
        grid-template-columns: 1fr; /* Μία στήλη */
        gap: 50px;
    }

    .hero-bg-shape {
        width: 100%;
        height: 40%;
        top: 0;
        clip-path: none; /* Αφαιρούμε το κόψιμο στο κινητό */
        background: linear-gradient(180deg, #f4f6f8 0%, #fff 100%);
    }

    .hero-text-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-quick-contact {
        justify-content: center;
    }

    .hero-visual-content {
        padding-left: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .dots-pattern {
        left: -10px; bottom: -20px;
    }
}

@media (max-width: 768px) {
    .hero-text-content h1 { font-size: 2.5rem; }
    .hero-quick-contact { flex-direction: column; gap: 15px; align-items: center; }
}

/* --- 2. CONTACT GRID SECTION --- */
.contact-grid-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Πολύ απαλό γκρι */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Η φόρμα λίγο πιο πλατιά */
    gap: 60px;
    align-items: start;
}

/* --- ΑΡΙΣΤΕΡΗ ΣΤΗΛΗ: INFO --- */
.contact-info-col h2 {
    font-size: 2rem;
    color: var(--ergo-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.info-intro {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.info-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 50px; height: 50px;
    background-color: rgba(138, 13, 45, 0.1);
    color: var(--ergo-red);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.text-box {
    display: flex;
    flex-direction: column;
}

.text-box .label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.text-box .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ergo-dark);
    line-height: 1.3;
}

/* Ωράριο */
.hours-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--ergo-red);
    box-shadow: var(--shadow-soft);
}

.hours-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hours-box ul {
    list-style: none;
}

.hours-box li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.hours-box li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* --- ΔΕΞΙΑ ΣΤΗΛΗ: FORM --- */
.premium-form {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08); /* Premium shadow */
}

.premium-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--ergo-dark);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.premium-form input, 
.premium-form select, 
.premium-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fbfbfb;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ergo-dark);
    transition: all 0.3s;
}

.premium-form input:focus, 
.premium-form select:focus, 
.premium-form textarea:focus {
    outline: none;
    border-color: var(--ergo-red);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(138, 13, 45, 0.05);
}

.premium-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--ergo-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--ergo-red-light);
}

/* Μήνυμα Επιτυχίας */
/* --- ΔΙΟΡΘΩΣΗ: ΣΤΑΘΕΡΗ ΦΟΡΜΑ ΜΕ FLOATING MESSAGE --- */

/* 1. Κάνουμε τη φόρμα σημείο αναφοράς */
.premium-form {
    position: relative; /* Απαραίτητο για να κολλήσει το μήνυμα πάνω της */
    /* Τα υπόλοιπα τα κρατάς όπως είναι (background, shadow κλπ) */
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: transform 0.3s ease; /* Για να μην κουνιέται απότομα */
}

/* 2. Το νέο στυλ του μηνύματος (Floating Toast) */
.success-message {
    /* Θέση: Βγαίνει ΕΚΤΟΣ φόρμας, από κάτω */
    position: absolute;
    bottom: -70px; /* Το κρεμάμε 70px κάτω από τη φόρμα */
    left: 0;
    width: 100%; /* Πιάνει όλο το πλάτος της φόρμας */
    
    /* Εμφάνιση */
    background-color: #e8f5e9; /* Απαλό πράσινο */
    color: #2e7d32;            /* Σκούρο πράσινο γράμματα */
    border-left: 5px solid #2e7d32; /* Μια ωραία γραμμή αριστερά */
    
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Σκιά για να ξεχωρίζει */
    
    text-align: left; /* Πιο ωραίο αριστερά με το εικονίδιο */
    font-weight: 600;
    font-size: 0.95rem;
    
    /* ΚΡΥΦΟ ΣΤΗΝ ΑΡΧΗ (με opacity για να κάνει animation) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* Λίγο πιο πάνω αρχικά */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Εφέ "ελατήριο" */
    
    z-index: 10;
}

/* 3. Η κλάση που θα βάζει η JavaScript για να εμφανιστεί */
.success-message.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Πέφτει στη θέση του */
}

/* Στυλ για το εικονίδιο μέσα στο μήνυμα */
.success-message i {
    margin-right: 10px;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. MAP STYLING --- */
/* (Το container .map-stretch-container ορίζεται στο global.css) */

.grayscale-map {
    filter: grayscale(100%); /* Ασπρόμαυρος χάρτης για premium look */
    transition: filter 0.5s ease;
}

.grayscale-map:hover {
    filter: grayscale(0%); /* Έγχρωμος όταν περάσει το ποντίκι */
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-hero h1 { font-size: 2.2rem; }
    
    .premium-form {
        padding: 30px 20px;
    }
}






/* =========================================
   FIX ΓΙΑ SELECT DROPDOWN ΣΕ MOBILE
   ========================================= */

@media (max-width: 900px) {

    /* Ειδικές ρυθμίσεις ΜΟΝΟ για το select */
    .premium-form select {
        /* 1. Σιγουριά ότι δεν βγαίνει έξω */
        width: 100% !important;
        max-width: 100% !important;
        
        /* 2. Αν το κείμενο είναι μεγάλο, βάζει τελίτσες (...) */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        
        /* 3. Καθαρίζουμε το άσχημο στυλ του Browser */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        
        /* 4. Βάζουμε δικό μας βελάκι (γιατί σβήσαμε το εργοστασιακό) */
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 15px center !important;
        background-size: 16px !important;
        
        /* 5. Χρώμα φόντου για να ξεχωρίζει */
        background-color: #fbfbfb !important;
        padding-right: 40px !important; /* Χώρος για να μην πέφτουν γράμματα πάνω στο βελάκι */
    }
}