/* ═══════════════════════════════════════════════════════════════
   FLOWGEEK — contact.css
   Specific styles for the Contact Page layouts & Forms
   ═══════════════════════════════════════════════════════════════ */

.justify-center { justify-content: center; }

/* ───────────────────────────────────────────────────────────────
   1. CONTACT HERO
───────────────────────────────────────────────────────────────── */
.contact-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 20px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, var(--bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%); /* Blue tinted orb for contact */
    pointer-events: none;
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 24px;
}

.contact-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ───────────────────────────────────────────────────────────────
   2. CONTACT GRID LAYOUT
───────────────────────────────────────────────────────────────── */
.section-contact-grid {
    position: relative;
    z-index: 3;
    padding-bottom: 100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* ───────────────────────────────────────────────────────────────
   3. FORM STYLING
───────────────────────────────────────────────────────────────── */
.form-card {
    padding: 48px;
    background: rgba(7, 7, 10, 0.85); /* Slightly darker to make inputs pop */
}


.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-pulse-dot {
    width: 10px; height: 10px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--teal);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-ghost);
}

.form-input:focus {
    background: rgba(99, 202, 183, 0.05);
    border-color: var(--teal);
    box-shadow: 0 0 15px rgba(99, 202, 183, 0.15);
}

/* Custom Select Dropdown */
.select-wrapper {
    position: relative;
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.form-select option {
    background: var(--bg-raised);
    color: var(--text-primary);
}
.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.w-full { width: 100%; justify-content: center; }

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.btn-reset {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-reset:hover {
    color: #ff5f57; /* Red hint for reset */
}

/* Form Feedback Message styling */
.form-message {
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}


/* ── Custom Select Dropdown Styling ── */
.custom-dropdown-group {
    position: relative;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

/* Το κουτί που φαίνεται κλειστό */
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-select-trigger .text-ghost {
    color: var(--text-ghost); /* Χρώμα σαν placeholder */
}

.custom-select-trigger .text-primary {
    color: var(--text-primary); /* Χρώμα όταν έχει επιλεχθεί κάτι */
}

.select-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Το μενού με τις επιλογές (Αρχικά κρυφό) */
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-teal);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 202, 183, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    list-style: none;
    padding: 8px;
    margin: 0;
}

/* Όταν το μενού ανοίγει */
.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--teal);
    box-shadow: 0 0 15px rgba(99, 202, 183, 0.15);
}

.custom-select-wrapper.open .select-icon {
    transform: rotate(180deg);
    color: var(--teal);
}

/* Οι μεμονωμένες επιλογές */
.custom-option {
    padding: 12px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover, 
.custom-option.selected {
    background: var(--teal-faint);
    color: var(--teal);
    padding-left: 20px; /* Ωραίο μικρό εφέ κίνησης προς τα δεξιά στο hover */
}

/* ───────────────────────────────────────────────────────────────
   4. SIDEBAR INFO CARDS
───────────────────────────────────────────────────────────────── */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(7, 7, 10, 0.5); /* Lighter than form to establish hierarchy */
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--teal-faint);
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    flex-shrink: 0;
}

.info-content h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-content p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Accents */
.info-card.blue-accent .info-icon { background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.3); color: var(--blue-400); }
.info-card.purple-accent .info-icon { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.3); color: var(--purple-400); }

/* Socials specific */
.social-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.social-card h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.social-row {
    display: flex;
    gap: 16px;
}
.social-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-bubble:hover {
    color: var(--teal);
    border-color: var(--teal);
    background: var(--teal-faint);
    transform: translateY(-3px);
}

/* ───────────────────────────────────────────────────────────────
   5. RESPONSIVE DESIGN
───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .info-card {
        flex: 1 1 calc(50% - 20px);
    }
    .social-card {
        flex: 1 1 100%;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .contact-hero { min-height: 35vh; padding-top: 120px; }
    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .form-card { padding: 32px 20px; }
    .info-card { flex: 1 1 100%; padding: 24px; }
}


/* ── Καθαρισμός του Form Container ── */

/* 1. Αφαιρεί την πλάγια (διαγώνια) λάμψη που έρχεται από τη μία πλευρά */
.form-card::after {
    display: none !important;
}

/* 2. Κλειδώνει το hover ώστε να μην κουνιέται/γέρνει και να μην ανάβει το περίγραμμα */
.form-card:hover {
    border-color: var(--border) !important;
    box-shadow: var(--shadow-card) !important;
    transform: none !important;
}

/* 3. Κρύβει την πάνω φωτεινή γραμμή στο hover */
.form-card:hover::before {
    opacity: 0 !important;
}

/* 4. Σταματάει τις γωνίες (ticks) από το να ανάβουν στο hover */
.form-card:hover .tick {
    border-color: var(--border-teal) !important;
}

/* ── Custom Select Dropdown Styling ── */
.custom-dropdown-group {
    position: relative;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

/* Το κουτί που φαίνεται κλειστό */
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-select-trigger .text-ghost {
    color: var(--text-ghost); /* Χρώμα σαν placeholder */
}

.custom-select-trigger .text-primary {
    color: var(--text-primary); /* Χρώμα όταν έχει επιλεχθεί κάτι */
}

.select-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Το μενού με τις επιλογές (Αρχικά κρυφό) */
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-teal);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 202, 183, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    list-style: none;
    padding: 8px;
    margin: 0;
}

/* Όταν το μενού ανοίγει */
.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--teal);
    box-shadow: 0 0 15px rgba(99, 202, 183, 0.15);
}

.custom-select-wrapper.open .select-icon {
    transform: rotate(180deg);
    color: var(--teal);
}

/* Οι μεμονωμένες επιλογές */
.custom-option {
    padding: 12px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover, 
.custom-option.selected {
    background: var(--teal-faint);
    color: var(--teal);
    padding-left: 20px; /* Ωραίο μικρό εφέ κίνησης προς τα δεξιά στο hover */
}


/* ── Τροποποίηση για Λευκά Labels ── */
.form-group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #ffffff; /* ΑΛΛΑΓΗ ΕΔΩ: από var(--text-muted) σε καθαρό λευκό */
    text-transform: uppercase;
    margin-left: 4px;
    opacity: 0.9; /* Προαιρετικό: για να μην είναι υπερβολικά έντονο */
}

/* Αν θέλεις να αλλάξεις και το χρώμα του κειμένου που γράφει ο χρήστης μέσα στα πεδία */
.form-input {
    color: #ffffff !important;
}

/* Αν θέλεις να αλλάξεις το χρώμα του "Choose..." στο dropdown */
.custom-select-trigger .text-ghost {
    color: rgba(255, 255, 255, 0.6) !important;
}