/* Booking Form Telegram - Main Styles */

.bft-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #0f2557 0%, #1a1a4e 25%, #2d1b69 50%, #4a1b7f 75%, #6b1b8f 100%);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer overlay effect */
.bft-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Form styles */
.bft-form {
    position: relative;
    z-index: 1;
}

.bft-form-title {
    text-align: center;
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #e0aaff, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bft-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.bft-form-group {
    display: flex;
    flex-direction: column;
}

.bft-form-group.bft-full-width {
    grid-column: 1 / -1;
}

.bft-form-group label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bft-form-group input[type="text"],
.bft-form-group input[type="tel"] {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bft-form-group input[type="text"]:focus,
.bft-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #9d4edd;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.bft-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Checkbox groups */
.bft-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.bft-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.bft-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.bft-checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.bft-checkbox-label:hover::before {
    left: 100%;
}

.bft-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #9d4edd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.bft-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #9d4edd;
}

.bft-checkbox-label span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.bft-checkbox-label input[type="checkbox"]:checked ~ span {
    color: #e0aaff;
}

/* Submit button */
.bft-form-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.bft-submit-btn {
    padding: 16px 60px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #7209b7, #9d4edd, #c77dff);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.bft-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.bft-submit-btn:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.6);
}

.bft-submit-btn:hover::before {
    left: 100%;
}

.bft-submit-btn:active {
    transform: translateY(-1px);
}

.bft-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message */
.bft-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bft-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #a5d6a7;
    display: block;
}

.bft-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #ef9a9a;
    display: block;
}

/* Responsive Design - Mobile (1 column) */
@media screen and (max-width: 768px) {
    .bft-form-container {
        padding: 25px 20px;
        margin: 20px 15px;
        border-radius: 15px;
    }
    
    .bft-form-title {
        font-size: 32px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }
    
    .bft-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bft-form-group.bft-full-width {
        grid-column: 1;
    }
    
    .bft-services-grid {
        grid-template-columns: 1fr;
    }
    
    .bft-checkbox-label {
        padding: 12px 16px;
    }
    
    .bft-submit-btn {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .bft-form-group label {
        font-size: 15px;
    }
    
    .bft-form-group input[type="text"],
    .bft-form-group input[type="tel"] {
        font-size: 16px;
        padding: 12px 16px;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .bft-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bft-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading state */
.bft-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bft-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
