/* LUXURY THEME FORMS */

/* General Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
    background-color: var(--input-bg);
    /* Variable override */
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

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

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Quantity Input */
.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: fit-content;
    overflow: hidden;
}

.qty-input button {
    background: #f9f9f9;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    transition: 0.2s;
}

.qty-input button:hover {
    background: #f0f0f0;
}

.qty-input input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    height: 40px;
    padding: 0;
    font-weight: 600;
}

/* Floating Labels */
.form-group.floating {
    position: relative;
    margin-bottom: 25px;
}

.form-group.floating input {
    width: 100%;
    padding: 15px 15px 15px 0;
    /* No left padding for minimal look default */
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    font-size: 1rem;
    background: transparent;
    transition: 0.3s;
}

.form-group.floating input:focus {
    border-bottom-color: var(--accent);
    box-shadow: 0 1px 0 0 var(--accent);
}

.form-group.floating label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #999;
    transition: 0.3s ease;
    pointer-events: none;
}

.form-group.floating.with-icon input {
    padding-left: 35px;
}

.form-group.floating.with-icon label {
    left: 35px;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    transition: 0.3s;
}

.form-group.floating input:focus~.input-icon {
    color: var(--accent);
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label {
    top: -5px;
    font-size: 0.8rem;
    color: var(--accent);
}