/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Hero szekció */
.contact-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.contact-hero .subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact content */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Kapcsolati információk */
.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    transition: var(--transition);
}

.info-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.info-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

.info-content p {
    color: #6b7280;
    margin: 0;
}

/* Zoom CTA Box - kapcsolati info alatt */
.zoom-cta-box {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    color: white;
}

.zoom-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.zoom-icon-small {
    flex-shrink: 0;
}

.zoom-cta-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.zoom-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-zoom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-zoom:hover {
    background: #f9fafb;
    transform: translateX(3px);
}

.btn-zoom svg {
    transition: var(--transition);
}

.btn-zoom:hover svg {
    transform: translateX(3px);
}

/* Kapcsolatfelvételi űrlap */
.contact-form-wrapper {
    background: white;
    padding: 0px 40px 40px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

/* Honeypot field - teljesen rejtett */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.required {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: #dc2626;
}

.error-message {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.error-message.show {
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-notice {
    margin-bottom: 1.5rem;
}

.recaptcha-notice {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: #2563eb;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert üzenetek */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.alert h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.alert p {
    margin: 0;
    color: inherit;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========================================
   TABBED INTERFACE
   ======================================== */

/* Tab Navigation */
.contact-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e5e7eb;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -2px;
}

.tab-btn svg {
    transition: var(--transition);
}

.tab-btn:hover {
    color: #2563eb;
    background: #f9fafb;
}

.tab-btn:hover svg {
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appointment Tab */
.appointment-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.appointment-intro {
    text-align: center;
    margin-bottom: 40px;
}

.appointment-intro h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.appointment-intro p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.calendly-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: hidden;
}

.calendly-inline-widget {
    border-radius: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0 40px;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-item {
        padding: 15px;
    }
    
    /* Tab styles for mobile */
    .contact-tabs {
        gap: 5px;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .appointment-intro h2 {
        font-size: 1.5rem;
    }
    
    .appointment-intro p {
        font-size: 1rem;
    }
    
    .calendly-container {
        padding: 10px;
    }
    
    .calendly-inline-widget {
        min-height: 600px !important;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.75rem;
    }
    
    .contact-hero .subtitle {
        font-size: 1rem;
    }
    
}

/* ========================================
   ONLINE CONSULTATION CTA BOX
   ======================================== */

.online-cta-box {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    color: white;
}

.online-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.online-icon {
    flex-shrink: 0;
    color: white;
}

.online-cta-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.online-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-online:hover {
    background: #f9fafb;
    transform: translateX(3px);
}

.btn-online svg {
    transition: var(--transition);
}

.btn-online:hover svg {
    transform: translateX(3px);
}

/* ========================================
   IN-PERSON CONSULTATION INFO
   ======================================== */

.info-description {
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

.clinic-info-box {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.clinic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.clinic-header svg {
    flex-shrink: 0;
}

.clinic-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.clinic-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.clinic-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.clinic-detail-item svg {
    flex-shrink: 0;
}

.clinic-detail-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.clinic-detail-item a:hover {
    text-decoration: underline;
}

.btn-appointment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-appointment:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e5e7eb;
}

.contact-divider::before {
    left: 0;
}

.contact-divider::after {
    right: 0;
}

.contact-divider span {
    background: white;
    padding: 0 15px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.email-cta {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 30px;
}

.email-cta p {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   APPOINTMENT BOOKING SYSTEM
   ======================================== */

.appointment-booking {
    max-width: 900px;
    margin: 0 auto;
}

.appointment-intro {
    text-align: center;
    margin-bottom: 40px;
}

.appointment-intro h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.appointment-intro p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Back buttons */
.back-to-calendar,
.back-to-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
}

.back-to-calendar:hover,
.back-to-time:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateX(-3px);
}

/* ========================================
   CALENDAR STYLES - WEEKLY VIEW
   ======================================== */

.booking-calendar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.calendar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav-btn:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
    background: #f9fafb;
}

.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Hide weekdays row (not needed in weekly view) */
.calendar-weekdays {
    display: none;
}

/* Weekly calendar grid */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.week-day {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: var(--transition);
}

.week-day.today {
    border-color: #2563eb;
    background: #eff6ff;
}

.week-day.past {
    opacity: 0.5;
}

.day-header {
    background: white;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
}

.week-day.today .day-header {
    background: #2563eb;
    color: white;
}

.day-name {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1f2937;
}

.week-day.today .day-name {
    color: white;
}

.day-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.week-day.today .day-date {
    color: white;
}

.day-slots {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
}

.slot-btn {
    width: 100%;
    padding: 10px 8px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.slot-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.no-slots-text {
    text-align: center;
    color: #9ca3af;
    font-size: 1.5rem;
    font-weight: 300;
    padding: 20px 0;
}

.calendar-legend {
    display: none; /* Not needed in weekly view */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #2563eb;
}

.legend-dot.unavailable {
    background: #d1d5db;
}

/* ========================================
   TIME SELECTION STYLES
   ======================================== */

.time-selection {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.time-selection h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.time-selection-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.time-slot {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
}

.slot-time {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}

.slot-availability {
    font-size: 0.875rem;
    color: #6b7280;
}

.no-slots {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-slots p {
    font-size: 1.125rem;
}

/* ========================================
   BOOKING FORM STYLES
   ======================================== */

.booking-form-view {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.booking-summary {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    margin-bottom: 30px;
}

.booking-summary h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2563eb;
    font-weight: 600;
}

.summary-item svg {
    flex-shrink: 0;
}

.booking-form {
    max-width: 100%;
}

.booking-form .form-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Terms acceptance checkbox */
.booking-form .form-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.6;
}

.booking-form .form-group label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.booking-form .form-group label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.booking-form .form-group label a:hover {
    text-decoration: underline;
}

/* ========================================
   MOBILE RESPONSIVE - APPOINTMENT BOOKING
   ======================================== */

@media (max-width: 768px) {
    .booking-calendar,
    .time-selection,
    .booking-form-view {
        padding: 15px;
    }

    .calendar-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .calendar-header h3 {
        font-size: 1rem;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
    }

    .calendar-days {
        gap: 8px;
    }

    .day-header {
        padding: 10px 6px;
    }

    .day-name {
        font-size: 0.75rem;
    }

    .day-date {
        font-size: 0.75rem;
    }

    .day-slots {
        padding: 8px 6px;
        gap: 6px;
        min-height: 80px;
    }

    .slot-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .no-slots-text {
        font-size: 1.25rem;
        padding: 15px 0;
    }

    .time-slots {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .time-slot {
        padding: 15px;
    }

    .booking-summary {
        padding: 15px;
    }

    .back-to-calendar,
    .back-to-time {
        width: 100%;
        justify-content: center;
    }

    .appointment-intro h2 {
        font-size: 1.5rem;
    }

    .appointment-intro p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .booking-calendar {
        padding: 10px;
    }

    .calendar-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .calendar-header h3 {
        font-size: 0.875rem;
    }

    .calendar-nav-btn {
        width: 32px;
        height: 32px;
    }

    .calendar-days {
        gap: 6px;
    }

    .day-header {
        padding: 8px 4px;
    }

    .day-name {
        font-size: 0.65rem;
    }

    .day-date {
        font-size: 0.65rem;
    }

    .day-slots {
        padding: 6px 4px;
        gap: 4px;
        min-height: 60px;
    }

    .slot-btn {
        padding: 6px 4px;
        font-size: 0.65rem;
    }

    .no-slots-text {
        font-size: 1rem;
        padding: 10px 0;
    }

    .time-slot {
        padding: 12px;
    }

    .slot-time {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .clinic-info-box {
        padding: 20px;
    }

    .clinic-header h3 {
        font-size: 1.125rem;
    }

    .btn-appointment {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-divider {
        margin: 20px 0;
    }
}