/* Dropdown Styling for Signature Image */
#signature-image {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px 0;
    border: none; /* border removed */
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #C2DBD2;
    color: #000000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%232e4158" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 8.293a1 1 0 011.414 0L10 9.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a 1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 38px;
}

#signature-image:focus {
    border-color: transparent;
    outline: none;
}

body.dark-mode #signature-image {
    background-color: #555;
    color: #ffffff;
    border: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f4f4f4" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 8.293a1 1 0 011.414 0L10 9.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a 1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 38px;
}

/* Base Styles + WALLPAPER FIX + CENTERING FIX */
body {
    font-family: 'Inter Tight', sans-serif;

    background-image: url('https://d66cdnprod.blob.core.windows.net/d66cdnprod/wallpaper/wallpaper-het-kan-wel.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;      /* FIX: Correct responsive scaling */
    background-attachment: scroll;
    background-color: #dfe4ff;

    margin: 0;
    padding: 20px;

    /* FIX: True centering */
    display: flex;
    flex-direction: column;
    align-items: center;         /* horizontal centering */
    justify-content: flex-start; /* not stuck to top */
    min-height: 100vh;
    box-sizing: border-box;
}

/* Main Container (Centered + No Border) */
.container {
    max-width: 1200px;
    width: calc(100% - 40px);
    background-color: #F9F2EE;
    color: #2e4158;
    padding: 30px;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 60px auto; /* FIX: perfect centering */
    position: relative;
    border: none; /* removed */
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 20px;
    color: black;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 38px;
    left: 30px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
}

/* Logo */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 75px;
    height: auto;
}

/* Layout */
.content {
    display: flex;
    justify-content: space-between;
    color: black;
}

.form {
    flex: 1;
    padding-right: 20px;
    color: black;
}

.form-title {
    margin-bottom: 20px;
    text-align: left;
    color: black;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
    color: black;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px 0;
    border: none; /* removed border */
    border-radius: 5px;
    background-color: #C2DBD2;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

/* Primary Button */
.primary-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Signature Panel */
.signature {
    flex: 1;
    margin-top: 30px;
    padding: 24px 28px;
    border-radius: 14px;
    color: #2e4158;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: none; /* removed border */
}

.signature div {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px;
    color: #555555;
    margin-top: 20px;
    text-align: left;
}

.disclaimer-container {
    display: flex;
    align-items: center;
}

.disclaimer-container input[type="checkbox"] {
    margin-right: 10px;
}

/* Floating Button */
.secondary-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    padding: 10px;
    font-size: 1.5em;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* DARK MODE */
body.dark-mode {
    background-color: #000000;
    color: #f4f4f4;
}

body.dark-mode .container {
    background-color: #333;
    color: #f4f4f4;
}

body.dark-mode .signature {
    background-color: #555;
    color: #f4f4f4;
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #555;
    color: #f4f4f4;
    border: none;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #f4f4f4;
}