/* Escort Booking Form v9.0 - Enhanced Styles */

:root {
    --gradient-start: #ff9a9e;
    --gradient-mid1: #fad0c4;
    --gradient-mid2: #ffecd2;
    --gradient-end: #fcb69f;
    --accent-pink: #ff6b95;
    --accent-gold: #ff9a5a;
    --text-dark: #333;
    --text-light: #666;
    --border-light: #ffd4d4;
    --success-bg: #d4edda;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-text: #721c24;
}

/* Container */
.ebf-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 50px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid1) 25%, var(--gradient-mid2) 50%, var(--gradient-end) 75%, var(--gradient-start) 100%);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(255, 154, 158, 0.5);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
    position: relative;
    overflow: hidden;
}

.ebf-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form */
.ebf-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Form Grid */
.ebf-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.ebf-form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Column Titles */
.ebf-column-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--accent-pink), var(--accent-gold)) 1;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Groups */
.ebf-form-group {
    display: flex;
    flex-direction: column;
}

.ebf-form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input Fields */
.ebf-form-group input[type="text"],
.ebf-form-group input[type="tel"] {
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.ebf-form-group input[type="text"]:focus,
.ebf-form-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 149, 0.15);
    transform: translateY(-2px);
}

.ebf-form-group input::placeholder {
    color: #bbb;
}

/* Checkbox Group */
.ebf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ebf-checkbox-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef9f9, #fff5f5);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.ebf-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-gold));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ebf-checkbox-label:hover {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-color: #ffb4b4;
    box-shadow: 0 4px 15px rgba(255, 107, 149, 0.2);
    transform: scale(1.02);
}

.ebf-checkbox-label:hover::before {
    transform: scaleY(1);
}

.ebf-checkbox-label:hover .ebf-checkbox-text strong {
    color: var(--accent-pink);
}

.ebf-checkbox-label:hover .ebf-checkbox-text small {
    color: var(--text-dark);
}

/* Custom Checkbox */
.ebf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin: 0;
    z-index: 1;
}

.ebf-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 14px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #fff;
    pointer-events: none;
    z-index: 0;
}

.ebf-checkbox-label input[type="checkbox"]:checked ~ .ebf-checkbox-custom {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
    border-color: var(--accent-pink);
}

.ebf-checkbox-label input[type="checkbox"]:checked ~ .ebf-checkbox-custom::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.ebf-checkbox-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ebf-checkbox-text strong {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.ebf-checkbox-text small {
    font-size: 13px;
    color: var(--text-light);
}

.ebf-checkbox-label input[type="checkbox"]:checked ~ .ebf-checkbox-text strong {
    color: var(--accent-pink);
}

/* Submit Button */
.ebf-form-submit {
    text-align: center;
    margin-top: 30px;
}

.ebf-submit-btn {
    padding: 18px 60px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 12px 35px rgba(255, 107, 149, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.ebf-submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 50px rgba(255, 107, 149, 0.6);
}

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

.ebf-submit-btn:active {
    transform: translateY(-2px) scale(1);
}

.ebf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ebf-btn-icon {
    font-size: 22px;
}

.ebf-btn-loader {
    display: inline-flex;
    align-items: center;
}

.ebf-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.ebf-message {
    margin-top: 25px;
    padding: 18px 26px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    animation: slideIn 0.4s ease;
}

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

.ebf-message.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 2px solid #c3e6cb;
    box-shadow: 0 4px 15px rgba(21, 87, 36, 0.1);
}

.ebf-message.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 2px solid #f5c6cb;
    box-shadow: 0 4px 15px rgba(114, 28, 36, 0.1);
}

/* Responsive Design - Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .ebf-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .ebf-form-column:last-child {
        grid-column: 1 / -1;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    .ebf-container {
        padding: 25px;
        margin: 20px 15px;
        border-radius: 20px;
    }
    
    .ebf-form {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .ebf-form-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .ebf-form-column {
        gap: 18px;
    }
    
    .ebf-column-title {
        font-size: 18px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    
    .ebf-form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .ebf-form-group input[type="text"],
    .ebf-form-group input[type="tel"] {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .ebf-checkbox-label {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .ebf-checkbox-custom {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
    
    .ebf-submit-btn {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .ebf-btn-icon {
        font-size: 20px;
    }
    
    .ebf-message {
        padding: 16px 20px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .ebf-container {
        padding: 20px;
        margin: 15px 10px;
    }
    
    .ebf-form {
        padding: 25px 15px;
    }
    
    .ebf-column-title {
        font-size: 16px;
    }
    
    .ebf-submit-btn {
        padding: 14px 30px;
        font-size: 15px;
        letter-spacing: 1px;
    }
}

/* Accessibility */
.ebf-checkbox-label:focus-within {
    outline: 3px solid var(--accent-pink);
    outline-offset: 3px;
}

input:focus-visible {
    outline: 3px solid var(--accent-pink);
    outline-offset: 2px;
}

/* Loading State */
.ebf-submit-btn:disabled .ebf-btn-text {
    opacity: 0.5;
}

/* Animation for form appearance */
.ebf-form {
    animation: fadeInUp 0.7s ease;
}

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

/* Print Styles */
@media print {
    .ebf-container {
        box-shadow: none;
        background: #fff;
    }
    
    .ebf-submit-btn {
        display: none;
    }
}
