.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-checkbox span {
    font-weight: 500;
    color: var(--text);
}

.form-checkbox.rental-inline-checkbox {
    display: inline-flex;
    width: fit-content;
}

.photo-upload {
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-upload:hover {
    border-color: var(--primary);
    background: var(--background);
}

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

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.photo-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.3s;
}

.toast.active {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.loader {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.photo-upload-zone {
    width: 100%;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--background);
    color: inherit;
    font: inherit;
}

.photo-upload-zone:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.photo-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 70vh;
    background: var(--background);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    flex: 1;
    min-height: 0;
}

.photo-viewer-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.photo-viewer-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 0.08s linear;
}

.photo-zoom-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.photo-zoom-stage.is-zoomed {
    cursor: grab;
}

.photo-zoom-stage.is-zoomed img {
    cursor: grab;
}

.photo-zoom-stage.is-dragging,
.photo-zoom-stage.is-dragging img {
    cursor: grabbing;
}

.photo-viewer-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.photo-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.photo-nav:hover:not(:disabled) {
    background: white;
    transform: scale(1.1);
}

.photo-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-nav svg {
    width: 1.5rem;
    height: 1.5rem;
}

.photo-viewer-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 0.5rem;
}

.modal.photo-viewer-open {
    padding: 0.5rem;
}

.modal.photo-viewer-open .modal-content {
    width: min(98vw, 1800px);
    max-width: min(98vw, 1800px);
    max-height: 98vh;
    height: 98vh;
}

.modal.photo-viewer-open .modal-body {
    padding: 0.75rem;
    height: calc(98vh - 86px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.select-search {
    position: relative;
}

.select-options {
    position: absolute;
    z-index: 10;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    display: none;
}

.select-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.select-option:hover {
    background: var(--background);
}

.select-option.disabled {
    color: var(--text-secondary);
    cursor: default;
}

.email-preview {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 120px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.email-preview pre {
    white-space: pre-wrap;
    margin: 0;
    font-family: inherit;
}

.email-preview-table {
    width: 100%;
    border-collapse: collapse;
}

.email-preview-table td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.upload-progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.upload-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.2s ease;
}

.upload-progress-text {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.photo-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.photo-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.photo-thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}
