/**
 * Escort Application Form Styles
 */

.escort-application-form-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.escort-application-form-container {
    background: #ffffff;
    border-top: 3px solid #d4af37;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.escort-application-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.escort-application-form-header > div {
    flex: 1;
}

.escort-application-form-header h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.escort-application-form-header .form-subtitle {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.escort-application-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.2s;
}

.escort-application-close:hover {
    color: #1a1a1a;
}

.escort-application-form {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.escort-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .escort-form-row {
        grid-template-columns: 1fr;
    }
}

.escort-form-group {
    margin-bottom: 20px;
}

.escort-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.escort-form-group .required {
    color: #e74c3c;
}

.escort-form-group .photo-hint {
    font-weight: normal;
    color: #666;
    font-size: 12px;
}

.escort-form-group input[type="text"],
.escort-form-group input[type="number"],
.escort-form-group input[type="file"],
.escort-form-group select,
.escort-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.escort-form-group input:focus,
.escort-form-group select:focus,
.escort-form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.escort-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.photo-preview-item .remove-photo:hover {
    background: rgba(231, 76, 60, 0.9);
}

.escort-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.escort-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.escort-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.escort-form-actions {
    margin-top: 24px;
}

.escort-form-submit {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.escort-form-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.escort-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.escort-form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.privacy-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Loading state */
.escort-form-submit .submit-loading {
    display: inline-block;
}

.escort-form-submit.loading .submit-text {
    display: none;
}

.escort-form-submit.loading .submit-loading {
    display: inline-block;
}

/* Scrollbar styling for form container */
.escort-application-form-container::-webkit-scrollbar {
    width: 8px;
}

.escort-application-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.escort-application-form-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.escort-application-form-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

