/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/********** Animations **********/

/* Initial state */
.gp-slide-right,
.gp-slide-left,
.gp-slide-down,
.gp-slide-up {
  opacity: 0;
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
}

/* ACTIVE STATE (μόλις μπει στο viewport) */
.gp-slide-right.is-visible {
  animation: slideRight 1s ease-out forwards;
}

.gp-slide-left.is-visible {
  animation: slideLeft 1s ease-out forwards;
}

.gp-slide-down.is-visible {
  animation: slideDown 1s ease-out forwards;
}

.gp-slide-up.is-visible {
  animation: slideUp 1s ease-out forwards;
}

/* Keyframes */
@keyframes slideRight {
  from { transform: translate3d(-100px,0,0); opacity: 0; }
  to   { transform: translate3d(0,0,0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translate3d(100px,0,0); opacity: 0; }
  to   { transform: translate3d(0,0,0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translate3d(0,-100px,0); opacity: 0; }
  to   { transform: translate3d(0,0,0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translate3d(0,100px,0); opacity: 0; }
  to   { transform: translate3d(0,0,0); opacity: 1; }
}

/* Show animated elements inside Elementor editor */
.elementor-editor-active .gp-slide-right,
.elementor-editor-active .gp-slide-left,
.elementor-editor-active .gp-slide-down,
.elementor-editor-active .gp-slide-up {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/***** contact form *****/

/* Προσθήκη κενών (margins) ανάμεσα στα πεδία */
.wpcf7 p {
    margin-bottom: 28px;
}

/* Βασική μορφοποίηση για τα απλά πεδία (ΕΞΑΙΡΟΥΜΕ το select εδώ για να μην μπερδεύει το Select2) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    padding: 12px 0;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Εμφάνιση του αρχικού select πριν φορτώσει η JS (Fallback) */
.wpcf7 select {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    background-color: transparent;
    width: 100%;
    padding: 12px 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Ο αρχικός σου κώδικας */
input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    border-top: none;
    border-left: none;
    border-right: none;
}

/* Focus state για τα απλά πεδία */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none !important;
    border-bottom: 2px solid #314E57;
    box-shadow: none;
}

/* Μορφοποίηση κουμπιού αποστολής */
.wpcf7 input[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: 0;
    background-color: transparent;
    color: #314E57;
    border: 2px solid #314E57;
    padding: 12px 35px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-top: 10px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #314E57;
    color: #ffffff;
}

/* --------------------------------------------------- */
/* SELECT2 BULLETPROOF STYLES (Αντικαθιστά τα default) */
/* --------------------------------------------------- */

.wpcf7 .select2-container {
    width: 100% !important;
}

/* Εμφάνιση του κλειστού πεδίου Select2 */
.wpcf7 .select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #cccccc !important;
    border-radius: 0 !important;
    height: auto !important;
    padding: 12px 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Focus state για το Select2 */
.wpcf7 .select2-container--default.select2-container--focus .select2-selection--single,
.wpcf7 .select2-container--default.select2-container--open .select2-selection--single {
    border-bottom: 2px solid #314E57 !important;
}

/* Κείμενο επιλογής (ΕΠΙΤΡΕΠΕΙ ΑΛΛΑΓΗ ΓΡΑΜΜΗΣ) */
.wpcf7 .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    color: inherit !important;
    white-space: normal !important; 
    word-wrap: break-word !important;
    line-height: 1.4 !important;
}

/* Το βελάκι στα δεξιά του Select2 */
.wpcf7 .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
}

/* Το dropdown μενού που ανοίγει (Αυτό προστίθεται στο body, άρα βγαίνει εκτός .wpcf7) */
.select2-container--default .select2-dropdown {
    border: 1px solid #cccccc !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    z-index: 99999 !important; /* Διασφαλίζει ότι θα ανοίγει πάνω από όλα */
}

/* Οι επιλογές μέσα στο dropdown (ΕΠΙΤΡΕΠΕΙ ΑΛΛΑΓΗ ΓΡΑΜΜΗΣ) */
.select2-container--default .select2-results__option {
    white-space: normal !important; 
    word-wrap: break-word !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f1f1f1 !important;
    color: inherit !important;
}

/* Χρώμα στο hover των επιλογών */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #314E57 !important;
    color: white !important;
}