/* ========================== */
/* Global font og layout */
/* ========================== */
html, body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    background: #f5f6fa;
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Alle felter arver font */
input, textarea, select, button {
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

/* ========================== */
/* Labels */
/* ========================== */
label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #2c3e50;
}

/* ========================== */
/* Formularfelter */
/* ========================== */
input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(41,128,185,0.5);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================== */
/* Knapper */
/* ========================== */
button {
    width: 100%;
    padding: 12px 0;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2980b9, #3498db);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

button:hover {
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ========================== */
/* Billeder */
/* ========================== */
img {
    max-width: 150px;
    display: block;
    margin-top: 8px;
    border-radius: 8px;
}

/* Preview billede */
img#preview {
    max-width: 150px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ========================== */
/* Autocomplete dropdown */
/* ========================== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    font-size: 0.95rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.autocomplete-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.autocomplete-suggestion:hover {
    background-color: #3498db;
    color: #fff;
}

/* ========================== */
/* Grid / Rows / Columns */
/* ========================== */
.row {
    display: flex;
    gap: 40px;
}

.row .col {
    flex: 1;
}

/* ========================== */
/* Kønsikoner */
/* ========================== */
.gender-select {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    align-items: center;
}

.gender-icon {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 50%;
    padding: 5px;
}

.gender-icon img {
    width: 48px;
    height: 48px;
}

.gender-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Marker valgt ikon */
input[type="radio"]:checked + .gender-icon {
    box-shadow: 0 0 0 3px #3498db;
}

/* For blandet ikon */
.mixed-icon {
    display: flex;
    gap: 4px;
}

/* ========================== */
/* Chips / Connectors */
/* ========================== */
.chip-field {
    margin-top: 10px;
    margin-left: 16px;
}

.connector {
    width: 2px;
    height: 16px;
    margin-bottom: 6px;
    border-left: 2px dotted #bbb;
}

/* ========================== */
/* Galleri */
/* ========================== */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Fjern-knap til galleri */
.remove-image {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.remove-image::before,
.remove-image::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.remove-image::before {
    transform: rotate(45deg);
}

.remove-image::after {
    transform: rotate(-45deg);
}

.remove-image:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

/* ========================== */
/* File upload */
/* ========================== */
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.file-btn {
    padding: 10px 16px;
    background: linear-gradient(90deg, #2980b9, #3498db);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.file-name {
    font-size: 0.95rem;
    color: #666;
}
