form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    background-color: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin: 10px 0px;
}

.btn-cthulhu {
    background-color: transparent;
    color: var(--coffee-copper);
    border: 1px solid var(--coffee-copper);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-cthulhu:hover {
    background-color: var(--coffee-copper);
    color: var(--bg-abyss);
    box-shadow: 0 0 15px rgba(184, 115, 51, 0.3);
}

.btn-cthulhu:disabled {
    opacity: 0.5;
    cursor: no-drop;
}

.btn-cthulhu.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.input-label, .textarea-label, .select {
    position: relative;
}

.select {
    background-color: var(--bg-surface);
    color: var(--text-parchment);
    border: 1px solid #333;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    border-color: var(--coffee-copper);
    width: 100%;
}

    .select:focus {
        border-color: var(--cthulhu-green);
        box-shadow: 0 0 8px var(--cthulhu-green-glow);
    }

.input-label > input, .textarea-label > textarea  {
        background-color: var(--bg-surface);
        color: var(--text-parchment);
        border: 1px solid #333;
        padding: 0.75rem 1rem;
        outline: none;
        transition: border-color 0.3s ease;
        border-color: var(--coffee-copper);
        width: 100%;
    }

.input-label > label, .textarea-label > label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s;
}

.input-label > input:focus, .textarea-label > textarea:focus {
        border-color: var(--cthulhu-green);
        box-shadow: 0 0 8px var(--cthulhu-green-glow);
    }

    .input-label > input:focus ~ label,
    .input-label > input:valid ~ label,
    .input-label > input:disabled ~ label,
    .input-label > input:read-only ~ label,
    .textarea-label > textarea:focus ~ label,
    .textarea-label > textarea:valid ~ label,
    .textarea-label > textarea:disabled ~ label {
        top: 0;
        left: 0.8rem;
        font-size: 14px;
        padding: 0 4px;
        background-color: var(--bg-surface);
        color: var(--coffee-copper);
    }

.input-label > input:-webkit-autofill,
.input-label > input:-webkit-autofill:hover,
.input-label > input:-webkit-autofill:focus,
.input-label > input:-webkit-autofill:active,
.input-label > input:-webkit-autofill:disabled {
        -webkit-box-shadow: 0 0 0 30px var(--bg-surface) inset !important;
        -webkit-text-fill-color: var(--text-parchment) !important;
        border: 1px solid var(--coffee-copper) !important;
    }

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
}
