/* ----------------------------------------------------
   Premium Luxury Form System
   ---------------------------------------------------- */

#contact {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Card Container */
.glass-form-card {
    background: rgba(22, 17, 13, 0.7);
    /* Dark wood tint base */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    /* overflow: hidden; Removed to allow dropdowns to spill out */
    overflow: visible;
    transition: transform 0.4s var(--ease-custom), box-shadow 0.4s var(--ease-custom);
}

.glass-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(123, 79, 42, 0.3), rgba(255, 255, 255, 0), rgba(123, 79, 42, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    pointer-events: none;
}

/* Glow Effect behind card */
.glass-form-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(123, 79, 42, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Input Fields */
.premium-input-group {
    position: relative;
    margin-bottom: 0;
    /* Handled by grid gap */
}

.premium-input {
    width: 100%;
    height: 56px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 16px 0 44px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s var(--ease-custom);
    outline: none;
    text-align: left;
}

.premium-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--wood);
    box-shadow: 0 0 0 1px var(--wood), 0 0 15px rgba(123, 79, 42, 0.2);
}

.premium-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

textarea.premium-input {
    height: auto;
    min-height: 120px;
    padding-top: 16px;
    resize: vertical;
}

/* Icons inside inputs */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    /* Center vertically for standard inputs */
    transform: translateY(-50%);
    color: rgba(156, 163, 175, 1);
    /* text-muted */
    transition: color 0.3s;
    pointer-events: none;
    width: 20px;
    height: 20px;
    z-index: 2;
    /* Ensure icon stays on top */
}

textarea~.input-icon {
    top: 28px;
    /* Adjust for textarea padding */
}

.premium-input:focus~.input-icon,
.premium-select-wrapper:focus-within~.input-icon,
.premium-select-wrapper.has-value~.input-icon {
    color: var(--wood);
}

/* Floating Labels */
.premium-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(156, 163, 175, 0.8);
    pointer-events: none;
    transition: all 0.25s var(--ease-custom);
    font-size: 1rem;
    padding: 0 4px;
}

textarea~.premium-label {
    top: 28px;
}

.premium-input:focus~.premium-label,
.premium-input:not(:placeholder-shown)~.premium-label,
.premium-input.has-content~.premium-label,
.premium-select-wrapper:focus-within~.premium-label,
.premium-select-wrapper.has-value~.premium-label {
    top: -10px;
    left: 12px;
    transform: translateY(0) scale(0.85);
    background: #1a120b;
    /* Match body bg to hide line */
    color: var(--wood);
    font-weight: 500;
    z-index: 5;
}

/* Custom Dropdown Styling */
.premium-select-wrapper {
    position: relative;
}

.premium-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(156, 163, 175, 0.8);
    border-bottom: 2px solid rgba(156, 163, 175, 0.8);
    transition: all 0.3s;
    pointer-events: none;
}

.premium-select-wrapper:focus-within::after {
    transform: translateY(-20%) rotate(225deg);
    border-color: var(--wood);
}

/* Checkmark Modal */
#success-modal {
    backdrop-filter: blur(8px);
}