/* Profile Modal Styles */

/* Bulma Modal Override for Dark Theme */
#profile-form-modal.modal {
    z-index: 9999;
}

#profile-form-modal .modal-background {
    background: rgba(0, 0, 0, 0.86);
}

#profile-form-modal .modal-card {
    width: 600px;
    background: transparent;
}

#profile-form-modal .modal-card-head {
    background: linear-gradient(145deg, #2a2a3e, #1f1f2e);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#profile-form-modal .modal-card-title {
    color: #fff;
    font-weight: 600;
}

#profile-form-modal .modal-card-body {
    background: #1a1a2e;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#profile-form-modal .modal-card-foot {
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

/* Form Fields Styling */
#profile-form-modal .field {
    margin-bottom: 1.5rem;
}

#profile-form-modal .label {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#profile-form-modal .input,
#profile-form-modal .textarea,
#profile-form-modal .select select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

#profile-form-modal .input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#profile-form-modal .help {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Button Styling */
#profile-form-modal .button {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#profile-form-modal .button.is-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

#profile-form-modal .button.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#profile-form-modal .button.is-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0a0a0;
}

#profile-form-modal .button.is-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Icon Styling */
#profile-form-modal .icon {
    color: rgba(255, 255, 255, 0.5);
}

#profile-form-modal .control.has-icons-left .icon.is-left {
    color: rgba(255, 255, 255, 0.3);
    height: 2.5rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 2.5rem;
    z-index: 4;
}

/* Radio and Checkbox */
#profile-form-modal input[type="radio"],
#profile-form-modal input[type="checkbox"] {
    margin-right: 0.5rem;
}

#profile-form-modal .radio,
#profile-form-modal .checkbox {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 1rem;
}

/* Place Suggestions */
#profile-place-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

#profile-place-suggestions.is-active {
    display: block;
}

#profile-place-suggestions .suggestion-item {
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s;
}

#profile-place-suggestions .suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.profile-modal {
    background: linear-gradient(145deg, #2a2a3e, #1f1f2e);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.is-active .profile-modal {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

/* Progress Indicator */
.progress-container {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-line-active {
    position: absolute;
    top: 20px;
    left: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a3e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.is-active .step-circle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.progress-step.is-completed .step-circle {
    background: #48bb78;
    border-color: transparent;
    color: #fff;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #a0a0a0;
}

.progress-step.is-active .step-label {
    color: #fff;
}

/* Modal Body */
.modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 220px);
}

.form-step {
    display: none;
}

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

/* Form Fields */
.field {
    margin-bottom: 1.5rem;
}

.label {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.required {
    color: #f56565;
}

.input, .select select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    width: 100%;
    transition: all 0.2s;
}

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

.input.is-danger {
    border-color: #f56565;
}

.help {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.help.is-danger {
    color: #f56565;
}

/* Location Suggestions */
.location-suggestions {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    color: #e2e8f0;
}

.suggestion-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.suggestion-item i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Radio Buttons */
.radio {
    margin-right: 1rem;
    color: #e2e8f0;
}

.radio input[type="radio"] {
    margin-right: 0.25rem;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.button.is-ghost {
    background: transparent;
    color: #a0a0a0;
}

.button.is-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.button.is-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.button.is-light:hover {
    background: rgba(255, 255, 255, 0.15);
}

.button.is-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.button.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.button.is-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
}

.button.is-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.buttons {
    display: flex;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .profile-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .progress-steps {
        padding: 0 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}
