.ticket-form {
   background: var(--white);
   max-width: 1400px;
   margin: 2rem auto;
   border-radius: 24px;
   display: grid;
   grid-template-columns: 30% 70%; 
   overflow: hidden;
   box-shadow: 
       0 15px 30px rgba(74, 48, 33, 0.1),
       0 0 0 1px rgba(74, 48, 33, 0.05);
   min-height: 400px;
}

.ticket-left {
   background: linear-gradient(135deg, var(--tropical-green), #1d422a);
   padding: 2.5rem;
   color: white;
   position: relative;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.ticket-left::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.boarding-title {
   font-family: 'Courier New', monospace;
   font-size: 0.85rem;
   letter-spacing: 2px;
   opacity: 0.8;
   margin-bottom: 2rem;
}

.destination {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 2rem;
}

.flight-path {
   width: 100%;
   display: flex;
   align-items: center;
   gap: 1rem;
   margin: 1rem 0;
}

.path-line {
   flex: 1;
   height: 2px;
   background: rgba(255, 255, 255, 0.3);
   position: relative;
}

.path-line::before, 
.path-line::after {
   content: '•';
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   color: var(--gold);
}

.path-line::before { left: -5px; }
.path-line::after { right: -5px; }

.plane {
   animation: flyPlane 3s infinite ease-in-out;
}

.from, .to {
   text-align: center;
}

.label {
   font-size: 0.75rem;
   opacity: 0.8;
   margin-bottom: 0.5rem;
   display: block;
}

.city {
   font-size: 3rem;
   font-weight: bold;
   font-family: 'Heebo', sans-serif;
   letter-spacing: 1px;
   display: block;
}

.name {
   font-size: 0.9rem;
   opacity: 0.9;
   margin-top: 0.25rem;
   display: block;
}

.ticket-right {
   padding: 2.5rem;
   background: var(--white);
   position: relative;
   display: flex;
   flex-direction: column;
}

.ticket-right::before {
   content: '';
   position: absolute;
   left: 0;
   top: -10px;
   bottom: -10px;
   width: 20px;
   background-image: 
       linear-gradient(0deg, transparent 33.333%, var(--white) 33.333%, var(--white) 66.667%, transparent 66.667%);
   background-size: 40px 20px;
   background-position: -20px 0;
}

.flight-details {
   display: grid;
   grid-template-columns: repeat(7, 1fr);
   gap: 1.5rem;
   padding-bottom: 2rem;
   margin-bottom: 2rem;
   border-bottom: 1px solid rgba(74, 48, 33, 0.1);
}

#selected-location-slot {
   grid-column: span 2;
}

.detail {
   display: flex;
   flex-direction: column;
}

.detail .label {
   color: var(--cocoa-brown);
   opacity: 0.6;
}

.detail .value {
   font-family: 'Courier New', monospace;
   font-size: 1.1rem;
   letter-spacing: 1px;
   color: var(--cocoa-brown);
}

.passenger-details {
   flex: 1;
   display: flex;
   flex-direction: column;
}

.form-group {
   margin-bottom: 1.5rem;
   position: relative;
}

.form-group input {
   width: 100%;
   padding: 1rem;
   background: rgba(74, 48, 33, 0.03);
   border: 1px solid rgba(74, 48, 33, 0.1);
   border-radius: 12px;
   font-size: 1rem;
   transition: all 0.3s;
}

.form-group input:focus {
   outline: none;
   border-color: var(--gold);
   background: white;
   box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.form-group label {
   position: absolute;
   right: 1rem;
   top: 50%;
   transform: translateY(-50%);
   transition: all 0.3s;
   padding: 0 0.5rem;
   color: var(--cocoa-brown);
   pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
   top: 0;
   transform: translateY(-50%);
   background: white;
   font-size: 0.8rem;
   color: var(--tropical-green);
}

.submit-btn {
   margin-top: auto;
   background: var(--gold);
   color: var(--cocoa-brown);
   border: none;
   padding: 1rem;
   border-radius: 50px;
   font-size: 1.2rem;
   cursor: pointer;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover {
   background: var(--tropical-green);
   color: white;
   box-shadow: 0 10px 20px rgba(42, 90, 57, 0.2);
}

.ticket-details {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
}

.price-section {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    color: var(--tropical-green);
    font-weight: bold;
}

.workshop-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workshop-details h4 {
    color: var(--cocoa-brown);
    margin-bottom: 0.5rem;
}

/* עיצוב הסלקט עצמו */
.ticket-right select {
    appearance: none;
    background: var(--white);
    border: 2px solid rgba(74, 48, 33, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    color: var(--cocoa-brown);
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    direction: rtl;
    
    /* חץ מותאם אישית */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A3021' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1rem;
}

/* הובר ופוקוס */
.ticket-right select:hover,
.ticket-right select:focus {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
    outline: none;
}

/* עיצוב האופציות בדרופדאון */
.ticket-right select option {
    background: var(--white);
    color: var(--cocoa-brown);
    padding: 1rem;
    direction: rtl;
}

/* עיצוב מיוחד לאופציה האחרונה (מקומות אחרונים) */
.ticket-right select option[data-last-spots="true"] {
    color: #e74c3c;
    font-weight: 600;
}

/* תיקון למובייל */
@media (max-width: 768px) {
    .ticket-right select {
        padding: 0.8rem 2rem 0.8rem 1rem;
        background-size: 0.8rem;
        background-position: left 0.8rem center;
    }
}

.last-spots {
    color: #e74c3c;
    font-weight: 600;
}

.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 48, 33, 0.1);
}

.total-price {
    font-size: 1.5rem;
    color: var(--tropical-green);
    font-weight: bold;
}

.ticket-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
    font-size: 1.3rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--cocoa-brown);
    font-weight: bolder;
    animation: pulse 2s infinite;
}

.btn-primary::before {
    content: '✨✈️';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '✈️✨';
    position: absolute;
    left: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--cocoa-brown);
}

.btn-primary:hover {
    background: var(--tropical-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary:hover::before,
.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ticket-actions {
        flex-direction: column;
    }
    
    .ticket-details {
        padding: 1.5rem;
    }
}

.gate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-call {
    color: #e74c3c;
    font-family: "Courier new";
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-top: 0.3rem;
    direction: ltr;
}

#selected-location-slot {
    min-height: 3.5rem;
}

/* עיצוב אזור הקאונטר */
.counter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 48, 33, 0.03);
    border: 2px solid rgba(74, 48, 33, 0.1);
    border-radius: 12px;
    padding: 0.25rem;
    width: fit-content;
}

/* כפתורי פלוס ומינוס */
.counter-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--white);
    color: var(--cocoa-brown);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
    /* מניעת זום במובייל */
    touch-action: manipulation;
}

.counter-btn:hover {
    background: var(--gold);
    color: var(--cocoa-brown);
}

/* שדה הקלט */
.counter-input {
    width: 3rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--cocoa-brown);
    text-align: center;
    -moz-appearance: textfield; /* הסרת החצים במוזילה */
}

/* הסרת החצים בכרום וספארי */
.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* פוקוס על השדה */
.counter-input:focus {
    outline: none;
}

/* עיצוב מיוחד למצב disabled */
.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(74, 48, 33, 0.05);
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .counter-btn {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .counter-input {
        width: 2.5rem;
        font-size: 1rem;
    }
}

@keyframes flyPlane {
   0%, 100% { transform: translate(0, 0) rotate(0deg); }
   50% { transform: translate(10px, -5px) rotate(5deg); }
}

@media (max-width: 768px) {
    .ticket-form {
        grid-template-columns: 1fr;
        margin: 1rem;
        max-width: 400px;
        min-height: unset;
    }
    
    .ticket-left {
        padding: 2rem 1.5rem;
        border-radius: 24px 24px 0 0;
        min-height: 200px;
    }

    .destination {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .city {
        font-size: 2rem;
    }

    .name {
        font-size: 0.8rem;
    }

    .flight-path {
        width: auto;
        transform: rotate(-30deg);
        margin: 0;
    }

    .path-line {
        width: 50px;
    }

    .flight-details {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem 2rem;
        padding: 1rem 0;
        margin: 1rem 0;
    }

    .detail {
        min-width: calc(50% - 1rem);
    }

    .detail .value {
        font-size: 1rem;
    }

    .ticket-right {
        padding: 1.5rem;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .submit-btn {
        margin-top: 1rem;
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    /* תוספת אנימציה לחץ ההמראה במובייל */
    .flight-path .plane {
        font-size: 1.2rem;
        transform-origin: center;
        animation: mobileFlyPlane 3s infinite ease-in-out;
    }

    @keyframes mobileFlyPlane {
        0%, 100% { 
            transform: rotate(30deg) translate(0, 0); 
        }
        50% { 
            transform: rotate(30deg) translate(5px, -5px); 
        }
    }

    /* שיפור הקו המפריד במובייל */
    .ticket-right::before {
        height: 12px;
        width: calc(100% + 20px);
        left: -10px;
        top: 0;
        bottom: auto;
        background-size: 16px 32px;
    }
}

/* תוספת לתצוגת טאבלט */
@media (min-width: 769px) and (max-width: 1024px) {
    .ticket-form {
        max-width: 700px;
        grid-template-columns: 45% 55%;
    }

    .city {
        font-size: 2.2rem;
    }

    .flight-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}