/**
 * Kuaför Randevu Public CSS
 */

/* Ana container */
.kuafor-randevu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

/* Adımlar */
.kuafor-step {
    display: none;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.kuafor-step.active {
    display: block;
}

.kuafor-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Bildirim kutucuğu */
.kuafor-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

/* Tarih seçici */
.kuafor-date-picker {
    margin-bottom: 25px;
}

.kuafor-date-picker .ui-datepicker {
    width: 100%;
    padding: 0;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.kuafor-date-picker .ui-datepicker-header {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    border: none;
    border-radius: 15px 15px 0 0;
    padding: 20px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.kuafor-date-picker .ui-datepicker-title {
    font-weight: 600;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Ay ve Yıl Seçimi */
.kuafor-date-picker .ui-datepicker-month,
.kuafor-date-picker .ui-datepicker-year {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    padding-right: 25px;
}

.kuafor-date-picker .ui-datepicker-month:hover,
.kuafor-date-picker .ui-datepicker-year:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.kuafor-date-picker .ui-datepicker-prev,
.kuafor-date-picker .ui-datepicker-next {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.kuafor-date-picker .ui-datepicker-prev:hover,
.kuafor-date-picker .ui-datepicker-next:hover {
    background: rgba(255,255,255,0.3);
}

.kuafor-date-picker .ui-datepicker-prev {
    left: 15px;
}

.kuafor-date-picker .ui-datepicker-next {
    right: 15px;
}

.kuafor-date-picker .ui-datepicker-prev span,
.kuafor-date-picker .ui-datepicker-next span {
    filter: brightness(0) invert(1);
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.kuafor-date-picker .ui-datepicker-calendar {
    width: 100%;
    background: white;
    border-collapse: collapse;
    padding: 15px;
}

.kuafor-date-picker .ui-datepicker-calendar th {
    padding: 15px 0;
    text-transform: uppercase;
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
    background: #f9f9f9;
}

.kuafor-date-picker .ui-datepicker-calendar td {
    padding: 5px;
    text-align: center;
}

.kuafor-date-picker .ui-datepicker-calendar a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    text-align: center;
    padding: 0;
    margin: 2px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #444;
    font-weight: 500;
    position: relative;
}

.kuafor-date-picker .ui-datepicker-calendar a:hover {
    background-color: #fff0f5;
    color: #FF1493;
    transform: scale(1.1);
}

.kuafor-date-picker .ui-datepicker-calendar .ui-state-active {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.2);
}

.kuafor-date-picker .ui-datepicker-calendar .ui-state-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.kuafor-date-picker .ui-datepicker-calendar .ui-datepicker-today a {
    border: 2px solid #FF69B4;
    font-weight: bold;
}

.kuafor-date-picker .ui-datepicker-calendar .ui-datepicker-today.ui-state-active a {
    border-color: white;
}

/* Saat slot'ları */
.kuafor-time-slots {
    max-height: 400px;
    overflow-y: auto;
}

.kuafor-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.kuafor-time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.kuafor-time-slot:hover:not(.booked) {
    background-color: #f5f5f5;
}

.kuafor-time-slot.selected {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.kuafor-time-slot.booked {
    background-color: #fff0f0;
    border-color: #ffcdd2;
    color: #d32f2f;
    cursor: not-allowed;
    opacity: 0.8;
}

.kuafor-time-slot.booked::before,
.kuafor-time-slot.booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: #d32f2f;
    transform-origin: center;
}

.kuafor-time-slot.booked::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.kuafor-time-slot.booked::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.kuafor-loading {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Form alanları */
.kuafor-services select,
.kuafor-staff-container select,
.kuafor-form-field input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Düğmeler */
.kuafor-step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.kuafor-next-btn,
.kuafor-prev-btn,
.kuafor-submit-btn,
.kuafor-reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.kuafor-next-btn,
.kuafor-submit-btn,
.kuafor-reset-btn {
    background-color: #4CAF50;
    color: white;
}

.kuafor-next-btn:hover,
.kuafor-submit-btn:hover,
.kuafor-reset-btn:hover {
    background-color: #388E3C;
}

.kuafor-next-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.kuafor-prev-btn {
    background-color: #f1f1f1;
    color: #333;
}

.kuafor-prev-btn:hover {
    background-color: #e0e0e0;
}

/* Özet alanı */
.kuafor-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.kuafor-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

/* Çapraz satış kutusu */
.kuafor-cross-sell {
    background: linear-gradient(135deg, #fff0f5, #fff);
    border: 1px solid #FFB6C1;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 105, 180, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
}

.kuafor-cross-sell h4 {
    color: #FF1493;
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kuafor-cross-sell h4:before {
    content: '🎁';
    font-size: 24px;
}

.kuafor-cross-sell-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
}

.kuafor-cross-sell-price {
    font-size: 22px;
    font-weight: bold;
    color: #FF1493;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kuafor-cross-sell-price del {
    color: #999;
    margin-right: 10px;
    font-weight: normal;
    font-size: 18px;
}

.kuafor-cross-sell-checkbox {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kuafor-cross-sell-checkbox:hover {
    background: #fff0f5;
}

.kuafor-cross-sell-checkbox input {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #FF1493;
}

.kuafor-cross-sell-checkbox span {
    font-size: 16px;
    color: #444;
}

/* Onay ekranı */
.kuafor-confirmation {
    text-align: center;
}

.kuafor-success-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #e8f5e9;
}

/* Hata mesajları */
.kuafor-error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Çapraz satış öğesi */
.kuafor-cross-sell-item {
    background-color: #fff9fc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.kuafor-cross-sell-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Viewport Düzeltmeleri */
* {
    box-sizing: border-box;
}

img, 
video {
    height: auto;
    max-width: 100%;
}

/* Duyarlı tasarım */
@media screen and (max-width: 768px) {
    .kuafor-step {
        padding: 20px 15px;
    }
    
    .kuafor-step h3 {
        font-size: 20px;
    }
    
    .kuafor-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .kuafor-time-slot {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    .kuafor-date-picker .ui-datepicker-header {
        padding: 15px 10px;
        font-size: 16px;
    }
    
    .kuafor-date-picker .ui-datepicker-prev,
    .kuafor-date-picker .ui-datepicker-next {
        width: 32px;
        height: 32px;
    }
    
    .kuafor-date-picker .ui-datepicker-calendar a {
        height: 40px;
    }
    
    .kuafor-date-picker .ui-datepicker-calendar th {
        padding: 10px 0;
        font-size: 11px;
    }
    
    .kuafor-next-btn,
    .kuafor-prev-btn,
    .kuafor-submit-btn,
    .kuafor-reset-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .kuafor-services select,
    .kuafor-staff-container select,
    .kuafor-form-field input {
        padding: 10px;
        font-size: 14px;
    }
    
    .kuafor-cross-sell h4 {
        font-size: 16px;
    }
    
    .kuafor-cross-sell-message,
    .kuafor-cross-sell-price {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .kuafor-randevu-wrapper {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%);
        left: 0;
        right: 0;
        padding: 0;
    }
    
    .kuafor-randevu-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .kuafor-step {
        padding: 15px 10px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 6px;
        box-sizing: border-box;
    }
    
    .kuafor-date-picker .ui-datepicker {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Mobil için ay/yıl seçici stillerini iyileştir */
    .kuafor-date-picker .ui-datepicker-title {
        flex-direction: column;
        gap: 5px;
    }
    
    .kuafor-date-picker .ui-datepicker-month,
    .kuafor-date-picker .ui-datepicker-year {
        font-size: 14px;
        padding: 4px 8px;
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }
    
    /* Form çeşitli öğelerini düzelt */
    .kuafor-services select,
    .kuafor-staff-container select,
    .kuafor-form-field input {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .kuafor-step h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .kuafor-time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .kuafor-time-slot {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .kuafor-date-picker .ui-datepicker-calendar a {
        height: 30px;
        width: 30px;
        font-size: 12px;
    }
    
    .kuafor-date-picker .ui-datepicker-header {
        padding: 10px 5px;
    }
    
    .kuafor-date-picker .ui-datepicker-calendar th {
        padding: 5px 2px;
        font-size: 10px;
    }
    
    .kuafor-date-picker .ui-datepicker-calendar td {
        padding: 1px;
    }
    
    .kuafor-date-picker .ui-datepicker-title {
        font-size: 14px;
    }
    
    .kuafor-date-picker .date-picker-info {
        font-size: 12px;
    }
    
    .kuafor-step-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .kuafor-prev-btn {
        order: 2;
        margin-top: 10px;
    }
    
    .kuafor-next-btn,
    .kuafor-submit-btn,
    .kuafor-reset-btn {
        order: 1;
        width: 100%;
    }
    
    .kuafor-cross-sell-item {
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #f0f0f0;
        border-radius: 6px;
    }
    
    .kuafor-cross-sell-checkbox {
        display: flex;
        align-items: center;
    }
    
    .kuafor-cross-sell-checkbox span {
        font-size: 13px;
    }
    
    .kuafor-summary {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Buton iyileştirmeleri */
    .kuafor-next-btn,
    .kuafor-prev-btn,
    .kuafor-submit-btn,
    .kuafor-reset-btn {
        width: 100%;
        margin: 5px 0;
        padding: 10px 5px;
        font-size: 14px;
        height: auto;
        min-height: 44px; /* Dokunma alanı için minimum yükseklik */
    }
    
    /* Aşama düğmeleri konteyneri */
    .kuafor-step-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    /* Çapraz satış bölümü */
    .kuafor-cross-sell {
        padding: 15px 10px;
        border-radius: 8px;
    }
    
    .kuafor-cross-sell-item {
        padding: 10px 5px;
    }
    
    .kuafor-cross-sell-checkbox {
        padding: 8px;
    }
    
    .kuafor-cross-sell-checkbox input {
        transform: scale(1.1);
        margin-right: 8px;
    }
    
    .kuafor-cross-sell-message,
    .kuafor-cross-sell-price {
        margin: 8px 0;
    }
    
    /* Yükseklik ayarları */
    .kuafor-time-slots {
        max-height: 300px;
    }
    
    /* Özet bölümü */
    .kuafor-summary {
        padding: 10px;
    }
    
    .kuafor-summary p {
        margin: 5px 0;
    }
}

/* Wrapper ve Genel Stiller */
.kuafor-randevu-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

.kuafor-randevu-wrapper input,
.kuafor-randevu-wrapper select,
.kuafor-randevu-wrapper button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    max-width: 100%;
}

.kuafor-randevu-wrapper select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px;
}

.kuafor-randevu-wrapper input:focus,
.kuafor-randevu-wrapper select:focus,
.kuafor-randevu-wrapper button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.3);
}

@media screen and (max-width: 768px) {
    .kuafor-randevu-wrapper {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%);
        left: 0;
        right: 0;
        padding: 0 10px;
    }
    
    .kuafor-randevu-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important;
        margin: 0 !important;
    }
    
    .kuafor-step {
        padding: 20px 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* En Üst Seviye Düzeltmeler - Tema Çakışmalarını Önle */
body .kuafor-randevu-wrapper {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

body .kuafor-randevu-container * {
    box-sizing: border-box !important;
}

@media screen and (max-width: 480px) {
    body {
        overflow-x: hidden !important;
    }
    
    body .kuafor-randevu-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* DatePicker genişlik sorunu */
    .ui-datepicker.ui-datepicker {
        width: 100% !important;
    }
}

.kuafor-randevu-mobile-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Mobil form davranışı için ek düzeltmeler */
@media screen and (max-width: 480px) {
    .kuafor-randevu-mobile-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* İç içe geçmiş taşmaları engelle */
    .kuafor-randevu-wrapper {
        overflow-x: visible !important;
    }
    
    /* DatePicker mobil genişlik düzeltmesi */
    #ui-datepicker-div {
        width: 94% !important;
        left: 3% !important;
        right: 3% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
} 