/* Dubai Film Permit Application Form Styles */

.fpd-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #001125;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Progress Bar */
.fpd-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.fpd-progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    z-index: 1;
}

.fpd-step {
    text-align: center;
    flex: 1;
    position: relative;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.fpd-step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 1;
    transition: all 0.3s ease;
}

.fpd-step.active::before,
.fpd-step.completed::before {
    background: #ebaf3d;
}

.fpd-step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.3);
}

.fpd-step.active .fpd-step-number,
.fpd-step.completed .fpd-step-number {
    background: #ebaf3d;
    border-color: #ebaf3d;
    color: white;
    transform: scale(1.1);
}

.fpd-step.completed .fpd-step-number::after {
    content: '✓';
    font-size: 20px;
}

.fpd-step-label {
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fpd-step.active .fpd-step-label,
.fpd-step.completed .fpd-step-label {
    color: white;
    font-weight: bold;
}

/* Form Steps */
.fpd-form-step {
    display: none;
    padding: 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    color: #333;
    animation: fadeInUp 0.5s ease;
}

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

.fpd-form-step.active {
    display: block;
}

.fpd-form-step h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.fpd-form-step h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Form Groups */
.fpd-form-group {
    margin-bottom: 20px;
}

.fpd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.fpd-form-group input[type="text"],
.fpd-form-group input[type="email"],
.fpd-form-group input[type="tel"],
.fpd-form-group input[type="date"],
.fpd-form-group input[type="number"],
.fpd-form-group select,
.fpd-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.fpd-form-group input:focus,
.fpd-form-group select:focus,
.fpd-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Inline input wrapper for country code + phone */
.fpd-input-inline {
    display: flex;
    gap: 10px;
}

.fpd-input-inline select#country_code {
    max-width: 200px;
}

.fpd-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.fpd-form-group input.error,
.fpd-form-group select.error,
.fpd-form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Checkbox Groups */
.fpd-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.fpd-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fpd-checkbox-group label:hover {
    background: rgba(102, 126, 234, 0.1);
}

.fpd-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* File Upload */
.fpd-form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fpd-form-group input[type="file"]:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
}

/* Conditional Fields */
.fpd-form-group[id$="_other_group"] {
    margin-top: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

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

.fpd-form-group[id$="_other_group"] label {
    color: #667eea;
    font-weight: 600;
}

.fpd-form-group[id$="_other_group"] input {
    border-color: #667eea;
    background: white;
}

/* Navigation */
.fpd-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.fpd-navigation button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpd-prev {
    background: #6c757d;
    color: white;
}

.fpd-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.fpd-next,
.fpd-submit {
    background: linear-gradient(135deg, #c78100 0%, #001225 100%);
    color: white;
}

.fpd-next:hover,
.fpd-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}



/* Loading Spinner */
.fpd-next .spinner,
.fpd-submit .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: fpd-spin 1s ease-in-out infinite;
}

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

/* Review Data */
.fpd-review-data {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.fpd-review-data h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.fpd-review-data table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.fpd-review-data td {
    padding: 10px;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
}

.fpd-review-data td:first-child {
    font-weight: 600;
    color: #555;
    width: 35%;
}

.fpd-review-data td:last-child {
    color: #333;
}

.fpd-review-data a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fpd-review-data a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
    text-decoration: underline;
}

/* Success Message */
.fpd-success-message {
    display: none;
    text-align: center;
    padding: 40px;
/*     background: linear-gradient(135deg, #ebaf3d 0%, #45a049 100%); */
    border-radius: 10px;
    margin-top: 20px;
    color: white;
    animation: fadeInUp 0.5s ease;
}

.fpd-success-message h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
}

.fpd-success-message p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

/* Error Messages */
.fpd-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    display: none;
}

.fpd-error button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
}

.fpd-error button:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fpd-form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .fpd-progress-bar {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .fpd-progress-bar::before {
        display: none;
    }
    
    .fpd-step {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .fpd-step-number {
        margin: 0;
    }
    
    .fpd-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .fpd-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .fpd-navigation button {
        width: 100%;
    }
    
    .fpd-review-data table {
        font-size: 14px;
    }
    
    .fpd-review-data td {
        padding: 8px 5px;
    }
    
    .fpd-review-data td:first-child {
        width: 40%;
    }
}

@media (max-width: 480px) {
    .fpd-form-step {
        padding: 20px;
    }
    
    .fpd-form-step h3 {
        font-size: 20px;
    }
    
    .fpd-review-data td:first-child {
        width: 45%;
        font-size: 13px;
    }
    
    .fpd-review-data td:last-child {
        font-size: 13px;
    }
}

/* Accessibility */
.fpd-form-group input:focus,
.fpd-form-group select:focus,
.fpd-form-group textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.fpd-navigation button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .fpd-form-container {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .fpd-navigation {
        display: none;
    }
    
    .fpd-progress-bar {
        display: none;
    }
}