/* Venue Management System — frontend form */

.vms-form-container {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.vms-form-header {
    padding: 32px 40px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.vms-form-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.vms-form-description,
.vms-description {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.vms-form {
    padding: 28px 40px 40px;
    font-family: "Host Grotesk", sans-serif;
}

.vms-form-group {
    margin-bottom: 28px;
}

.vms-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.vms-required {
    color: #d63638;
}

.vms-input,
.vms-textarea,
.vms-form .wp-editor-area {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vms-input:focus,
.vms-textarea:focus,
.vms-form .wp-editor-area:focus {
    outline: none;
    border-color: #0278ae;
    box-shadow: 0 0 0 3px rgba(2, 120, 174, 0.12);
}

.vms-textarea {
    min-height: 110px;
    resize: vertical;
}

.vms-checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.vms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vms-checkbox-label:hover {
    border-color: #0278ae;
    background: #f3f9fd;
}

.vms-checkbox-label:has(input:checked) {
    border-color: #0278ae;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    font-weight: 600;
}

.vms-location-count {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-size: 14px;
}

.vms-repeater-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 4px;
}

.vms-repeater-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vms-repeater-item .vms-input {
    flex: 1;
    margin: 0;
}

.vms-repeater-container + .vms-btn-add {
    margin-top: 14px;
}

.vms-btn-add,
.vms-btn-remove,
.vms-btn-primary,
.vms-btn-secondary,
.vms-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vms-btn-add,
.vms-btn-secondary {
    padding: 10px 18px;
    border: 1px solid #0278ae;
    background: #fff;
    color: #0278ae;
}

.vms-btn-add:hover,
.vms-btn-secondary:hover {
    background: #f0f8fc;
}

.vms-btn-remove {
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    white-space: nowrap;
}

.vms-btn-remove:hover {
    border-color: #d63638;
    color: #d63638;
}

.vms-btn-primary,
.vms-submit-btn {
    padding: 14px 28px;
    border: none;
    background: #0278ae;
    color: #fff;
}

.vms-btn-primary:hover,
.vms-submit-btn:hover {
    background: #026291;
}

.vms-gallery-section {
    margin-top: 10px;
}

.vms-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vms-gallery-count {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.vms-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.vms-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.vms-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vms-gallery-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.vms-no-images {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    text-align: center;
    color: #777;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.vms-submit-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.vms-message {
    margin: 0 40px 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.vms-message.success {
    background: #edfaef;
    color: #007017;
    border: 1px solid #b8e6c1;
}

.vms-message.error {
    background: #fcf0f1;
    color: #8a1f1f;
    border: 1px solid #f0c0c0;
}

.vms-form .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.vms-form .wp-editor-container {
    border: none;
}

.venue-add-form-panel {
    scroll-margin-top: 120px;
}

@media (max-width: 782px) {
    .vms-form-header,
    .vms-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .vms-checkbox-group {
        grid-template-columns: 1fr;
    }

    .vms-repeater-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .vms-repeater-container + .vms-btn-add {
        margin-top: 12px;
    }
}
