/**
 * Faris Çiçek - Luxury Order Tracking Stylesheet
 * Brand: Burgundy (#850E35), Gold (#C29B38), Cream (#FAF8F5)
 */

.faris-track-container {
    max-width: 860px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2D2D32;
    box-sizing: border-box;
}

.faris-track-container * {
    box-sizing: border-box;
}

/* Card Base */
.faris-track-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #EFEAE3;
    box-shadow: 0 20px 50px rgba(133, 14, 53, 0.06), 0 4px 16px rgba(0, 0, 0, 0.02);
    padding: 50px 45px;
    transition: all 0.3s ease;
}

/* Header */
.faris-track-header {
    text-align: center;
    margin-bottom: 35px;
}

.faris-track-emblem {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px auto;
    background: linear-gradient(135deg, #FAF4EB 0%, #F5EBE1 100%);
    border: 1px solid #EADBCC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #850E35;
    box-shadow: 0 8px 20px rgba(194, 155, 56, 0.12);
}

.faris-track-title {
    font-family: 'Sora', sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1A1A1E !important;
    text-align: center !important;
    margin: 0 auto 18px auto !important;
    letter-spacing: -0.5px !important;
    width: 100% !important;
    display: block !important;
}

.faris-track-subtitle {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: #5A5A66 !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
}

.faris-track-subtitle .sub-hint {
    display: block;
    margin-top: 6px;
    color: #850E35;
    font-weight: 500;
    font-size: 13px;
}

/* Alerts */
.faris-track-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
}

.faris-track-alert--error {
    background: #FFF1F2;
    border: 1px solid #FFE4E6;
    color: #BE123C;
}

.faris-track-alert--cancelled {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #991B1B;
    margin: 20px 0;
}

/* Form Styles */
.faris-track-form {
    max-width: 520px;
    margin: 0 auto;
}

.faris-track-group {
    margin-bottom: 22px;
}

.faris-track-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #2D2D32;
    margin-bottom: 8px;
}

.faris-track-label .required {
    color: #850E35;
    font-weight: 700;
}

.faris-track-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.faris-track-icon {
    position: absolute;
    left: 16px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.25s ease;
}

.faris-track-input {
    width: 100%;
    height: 52px;
    padding: 10px 16px 10px 48px;
    font-size: 15px;
    font-family: inherit;
    color: #1A1A1E;
    background: #FAFAFB;
    border: 1.5px solid #E5E5EA;
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.faris-track-input:focus {
    background: #FFFFFF;
    border-color: #850E35;
    box-shadow: 0 0 0 4px rgba(133, 14, 53, 0.08);
}

.faris-track-input:focus + .faris-track-icon,
.faris-track-input-wrap:focus-within .faris-track-icon {
    color: #850E35;
}

.faris-track-actions {
    margin-top: 28px;
}

.faris-track-btn,
button.faris-track-btn,
.faris-track-form button[type="submit"] {
    width: 100% !important;
    height: 54px !important;
    background: #850E35 !important;
    background: linear-gradient(135deg, #850E35 0%, #6B0B2A 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 10px 24px rgba(133, 14, 53, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1) !important;
}

.faris-track-btn span,
button.faris-track-btn span {
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.faris-track-btn svg,
button.faris-track-btn svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.faris-track-btn:hover,
button.faris-track-btn:hover {
    background: linear-gradient(135deg, #9C1240 0%, #7E0D32 100%) !important;
    box-shadow: 0 14px 30px rgba(133, 14, 53, 0.32) !important;
    transform: translateY(-2px) !important;
}


.faris-track-notice {
    font-size: 12.5px;
    color: #71717A;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* ==========================================================================
   RESULT CARD STYLES
   ========================================================================== */

.faris-track-card--result {
    padding: 40px;
}

.faris-track-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F0ECE6;
    margin-bottom: 30px;
}

.faris-track-result-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.faris-order-badge {
    background: #FAF4EB;
    color: #850E35;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid #EADBCC;
}

.faris-order-date {
    font-size: 14px;
    color: #71717A;
}

.faris-track-status-pill {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.faris-track-status-pill--step-1 { background: #FEF3C7; color: #92400E; }
.faris-track-status-pill--step-2 { background: #DBEAFE; color: #1E40AF; }
.faris-track-status-pill--step-3 { background: #FDE68A; color: #850E35; border: 1px solid #F59E0B; }
.faris-track-status-pill--step-4 { background: #D1FAE5; color: #065F46; }

/* Timeline */
.faris-timeline-wrapper {
    margin: 35px 0 40px 0;
    padding: 0 10px;
}

.faris-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.faris-timeline-line {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #EAE5DD;
    z-index: 1;
    border-radius: 4px;
}

.faris-timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #850E35 0%, #C29B38 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.faris-timeline-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.faris-node-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #FFFFFF;
    border: 3px solid #D1D5DB;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.faris-node-label {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6B7280;
    line-height: 1.35;
}

/* Timeline States */
.faris-timeline-node.is-completed .faris-node-circle {
    background: #850E35;
    border-color: #850E35;
    color: #FDE68A;
}

.faris-timeline-node.is-completed .faris-node-label {
    color: #2D2D32;
}

.faris-timeline-node.is-active .faris-node-circle {
    background: #850E35;
    border-color: #C29B38;
    color: #FFFFFF;
    box-shadow: 0 0 0 6px rgba(194, 155, 56, 0.25);
    transform: scale(1.1);
}

.faris-timeline-node.is-active .faris-node-label {
    color: #850E35;
    font-weight: 700;
}

/* Status Banner */
.faris-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #FDF5F6 0%, #FAF0F2 100%);
    border-left: 4px solid #850E35;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 30px;
}

.faris-status-icon {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #850E35;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(133, 14, 53, 0.08);
}

.faris-status-head {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #850E35;
    margin-bottom: 3px;
}

.faris-status-sub {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.5;
}

/* Info Grid */
.faris-track-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.faris-track-box {
    background: #FAFAFB;
    border: 1px solid #ECE8E1;
    border-radius: 16px;
    padding: 22px;
}

.faris-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #1A1A1E;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #EAE5DD;
}

.faris-box-title svg {
    color: #850E35;
}

.faris-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 10px;
}

.faris-box-row:last-child {
    margin-bottom: 0;
}

.faris-box-row .label {
    color: #6B7280;
}

.faris-box-row .value {
    font-weight: 600;
    color: #1A1A1E;
    text-align: right;
}

.faris-box-row .value.highlight {
    color: #850E35;
    font-weight: 700;
}

.faris-box-row .value.price {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #850E35;
}

.faris-box-row .badge-secure {
    font-size: 11.5px;
    background: #ECFDF5;
    color: #059669;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Items List */
.faris-track-items {
    background: #FFFFFF;
    border: 1px solid #ECE8E1;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 30px;
}

.faris-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faris-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #EAE5DD;
}

.faris-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faris-item-img img,
.faris-item-img .faris-item-placeholder {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ECE8E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #FAF8F5;
}

.faris-item-details {
    flex: 1;
}

.faris-item-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #1A1A1E;
    margin-bottom: 4px;
}

.faris-item-meta {
    font-size: 12.5px;
    color: #6B7280;
}

.faris-item-price {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #850E35;
}

/* Footer Actions */
.faris-track-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.faris-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: #FAF8F5;
    border: 1.5px solid #E5E0D8;
    color: #2D2D32;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faris-btn-secondary:hover {
    background: #F3EFE8;
    border-color: #D6CEC2;
    color: #111;
}

.faris-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: #25D366;
    border: none;
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.faris-btn-whatsapp:hover {
    background: #20BA5A;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
    transform: translateY(-1px);
    color: #FFFFFF;
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    .faris-track-container {
        margin: 20px auto 40px auto;
        padding: 0 15px;
    }

    .faris-track-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .faris-track-title {
        font-size: 24px !important;
        text-align: center !important;
        margin: 0 auto 14px auto !important;
    }

    .faris-track-subtitle {
        font-size: 13.5px !important;
        text-align: center !important;
    }

    .faris-track-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faris-timeline-wrapper {
        margin: 25px 0 30px 0;
    }

    .faris-timeline-node {
        width: 70px;
    }

    .faris-node-circle {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .faris-node-label {
        font-size: 11px;
        margin-top: 6px;
    }

    .faris-timeline-line {
        top: 17px;
        left: 20px;
        right: 20px;
    }

    .faris-track-footer-actions {
        flex-direction: column;
        width: 100%;
    }

    .faris-btn-secondary,
    .faris-btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .faris-photo-btn-row {
        flex-direction: column;
        width: 100%;
    }

    .faris-btn-approve-photo,
    .faris-btn-request-change {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Workshop Bouquet Photo & Customer Approval Suite (Luxury Haute Floristerie)
   ========================================================================== */
.faris-track-workshop-card {
    background: linear-gradient(180deg, #FAF8F5 0%, #FFFDFB 100%);
    border: 1.5px solid #E8DFD8;
    border-radius: 20px;
    padding: 30px 24px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(133, 14, 53, 0.04);
}

.faris-workshop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #850E35;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.faris-workshop-title {
    font-family: 'Sora', sans-serif !important;
    color: #1C1917 !important;
    margin: 0 0 8px 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
}

.faris-workshop-desc {
    color: #666670 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    max-width: 560px !important;
    margin: 0 auto 18px auto !important;
}

.faris-workshop-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 440px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #FFFFFF;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    background: #FAFAFB;
}

.faris-workshop-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.faris-workshop-img-wrap:hover img {
    transform: scale(1.02);
}

.faris-photo-approval-actions {
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px dashed #E2D9D0;
}

.faris-photo-action-note {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 14px 0 !important;
}

.faris-photo-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.faris-btn-approve-photo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #15803D 0%, #166534 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    padding: 13px 26px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.28);
    transition: all 0.25s ease;
    font-family: inherit;
    text-decoration: none;
}

.faris-btn-approve-photo:hover {
    background: linear-gradient(135deg, #166534 0%, #14532D 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.36);
}

.faris-btn-approve-photo.loading {
    opacity: 0.75;
    pointer-events: none;
}

.faris-btn-request-change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #15803D !important;
    border: 1.5px solid #22C55E;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

.faris-btn-request-change:hover {
    background: #F0FDF4;
    border-color: #16A34A;
    color: #166534 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.16);
}

.faris-photo-approved-box {
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    margin: 14px auto 0 auto;
    max-width: 580px;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.1);
}

.faris-approved-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #22C55E;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faris-approved-content strong {
    display: block;
    color: #14532D;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.faris-approved-content p {
    color: #166534 !important;
    font-size: 12.5px !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.faris-fade-in {
    animation: farisPhotoFadeIn 0.35s ease forwards;
}

@keyframes farisPhotoFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

