/* Smart Floating Label Form Styles */

.booking-form-wrapper {
    background: #111;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.smart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default mobile: stacked */
    gap: 20px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        /* Desktop: 2 columns */
    }
}

/* Floating Label Container */
.form-floating {
    position: relative;
    width: 100%;
}

.form-floating.full-width {
    grid-column: 1 / -1;
}

/* Controls (Input, Select, Textarea) */
.form-control,
.form-select {
    width: 100%;
    padding: 16px 12px 4px 12px;
    /* Top padding for label space */
    height: 56px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default arrow for Select */
}

textarea.form-control {
    height: auto;
    padding-top: 24px;
}

/* Focus & Active States */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(242, 86, 35, 0.2);
    background: #1a1a1a;
}

/* Floating Label Style */
.form-floating label {
    position: absolute;
    top: 18px;
    left: 12px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    background: transparent;
    padding: 0 4px;
}

/* Float Up Logic */
.form-control:focus~label,
.form-control:not(:placeholder-shown)~label,
.form-select:focus~label,
.form-select:not([value=""]):valid~label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--accent-orange);
    background: #111;
    /* Mask line behind label */
    font-weight: 600;
}

/* Select specific tweaks */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* Button Block */
.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 10px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake-error {
    animation: shake 0.5s;
}