﻿form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-header {
    width: 90vw;
    margin-left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

    .form-header p {
        font-size: 20px;
    }

#signUpFormHeader h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #aaa 0%, #b4b4b4 8%, #999 18%, #865b69 35%, #7a3042 60%, #67192f 82%, #610c27 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.8px rgba(80, 80, 80, 0.35);
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
}

form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
    margin-left: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form select {
    width: 100%;
    padding: 10px 20px;
    padding-right: 40px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

    form input:focus,
    form select:focus,
    form textarea:focus {
        border-color: #AC9C8D;
        outline: none;
    }

    form select option:disabled {
        color: gray;
        font-style: italic;
    }

    form select option {
        color: black;
    }

.select-el {
    color: grey;
}

.selected {
    color: #000;
    background-color: #FFF5F2 !important;
}

.clear-btn,
.select-clear {
    position: absolute;
    right: 20px;
    top: 60%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    display: none;
}

.select-clear {
    top: 55%;
    right: 30px;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #FFF5F2 inset !important;
    -webkit-text-fill-color: #000 !important;
}

input:disabled:-webkit-autofill {
    box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
    -webkit-text-fill-color: #888 !important;
}

.clear-btn:hover,
.select-clear-btn:hover {
    color: #000;
    background-color: transparent;
}

input:disabled,
select:disabled {
    background-color: #f0f0f0 !important;
    color: #888 !important;
    cursor: not-allowed;
    border: none;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    transform: translateY(5px);
    accent-color: #610C27;
}

.checkbox-container a {
    color: #610C27;
    text-decoration: underline;
    cursor: pointer;
}

.gdpr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gdpr-modal {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.close-gdpr-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.gdpr-content {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 1rem;
}

form button[type="submit"] {
    background-color: #E3C1B4;
    color: #050505;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    width: 13rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

    form button[type="submit"]:hover {
        background-color: #C9ABA0;
    }

    form button[type="submit"]:disabled {
        background-color: #ddd;
        color: #999;
        cursor: not-allowed;
        opacity: 0.6;
    }

.btn-wrapper {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

    .btn-wrapper button {
        position: relative;
        z-index: 1;
    }

.btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    background: transparent;
    display: block;
}

form,
.form-completed,
.form-header {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transition-delay: 0.5s;
}

.form-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transition-delay: 0s;
}

.form-completed {
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    margin-top: 5rem;
}

.completed-modal-container {
    width: 50vw;
    height: 50vh;
    background-color: #fff;
    border-radius: 64px;
    box-shadow: 0 0 25px rgba(97, 12, 39, 0.6);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-align: center;
}

.completed-modal-h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #0072ff;
}

.completed-modal-p {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.happy-clef-img img {
    max-height: 10rem;
}

@media (max-width: 768px) {
    .completed-modal-container {
        width: 70vw;
    }

    .happy-clef-img img {
        max-height: 8rem;
    }
}

@media (max-width: 512px) {
    .completed-modal-container {
        width: 90vw;
    }

    .happy-clef-img img {
        max-height: 7rem;
    }
}


@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

form .form-field {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}

form .field-01 {
    animation-delay: 0.2s;
}

form .field-02 {
    animation-delay: 0.4s;
}

form .field-03 {
    animation-delay: 0.6s;
}

form .field-04 {
    animation-delay: 0.8s;
}

form .field-05 {
    animation-delay: 1s;
}

form .field-06 {
    animation-delay: 1.2s;
}

form .checkbox-container {
    animation-delay: 1.4s;
}

form .field-07 {
    animation-delay: 1.6s;
}
