body {
    background-color: #fafafa;
    color: #1f2937;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fafafa; }
::-webkit-scrollbar-thumb { background: #A0A0A0; border-radius: 4px; }

/* Silver Gradient Text */
.text-silver-gradient {
    background: linear-gradient(to right, #A0A0A0, #E0E0E0, #A0A0A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 160, 160, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.input-underline {
    border: none;
    border-bottom: 2px solid #f3f4f6; /* Slightly thicker, softer color */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.input-underline:focus {
    outline: none;
    border-bottom-color: #b89f5e;
    padding-left: 0.5rem; /* Subtle focus movement */
}

/* --- Custom Select Styles --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    margin-bottom: 0.5rem;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #111827; /* Darker, more premium */
    border-bottom: 2px solid #f3f4f6;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger:hover {
    border-bottom-color: #d1d5db;
}

.custom-select.open .custom-select-trigger {
    border-bottom-color: #b89f5e;
    padding-left: 0.5rem;
}

/* The Arrow */
.custom-select-trigger::after {
    content: '';
    width: 0.6em;
    height: 0.6em;
    border-right: 2px solid #b89f5e;
    border-bottom: 2px solid #b89f5e;
    transform: rotate(45deg);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.5rem;
    margin-top: -6px;
}

.custom-select.open .custom-select-trigger::after {
    transform: rotate(225deg);
    margin-top: 6px;
}

/* Dropdown Menu */
.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #f3f4f6;
    border-top: 0;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 60;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -10px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0px;
    border-radius: 0 0 12px 12px;
    transform: translateY(-15px) scale(0.98);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Dropdown Items */
.custom-option {
    position: relative;
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-family: 'Lato', sans-serif;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f9fafb;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover, 
.custom-option.selected {
    background-color: #fffaf0; /* Warm highlight */
    color: #b89f5e;
    font-weight: 700;
    padding-left: 2rem;
}

/* Scrollbar for the dropdown */
.custom-options::-webkit-scrollbar {
    width: 6px;
}
.custom-options::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}
.custom-options::-webkit-scrollbar-thumb:hover {
    background: #b89f5e;
}

/* Form Section Styling */
#contact .glass-panel {
    border-radius: 2rem;
    border: 1px solid rgba(160, 160, 160, 0.1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

/* Button Refinement */
#contact button[type="submit"] {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact button[type="submit"]:hover {
    letter-spacing: 0.3em;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(184, 159, 94, 0.4);
}

.silver-border-gradient {
    border-image: linear-gradient(to right, #A0A0A0, #E0E0E0) 1;
}

/* Accordion Styles */
.accordion-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}
.accordion-item:hover {
    transform: translateX(10px);
    background-color: #ffffff;
    border-left-color: #A0A0A0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out, transform 0.5s ease;
    opacity: 0;
    transform: translateY(-10px);
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}
.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-item.active {
    border-left-color: #A0A0A0 !important;
    background-color: #fafafa;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
}

/* Signature Animation */
.signature-container { display: inline-block; position: relative; }
.signature-draw {
    display: inline-block; overflow: hidden; white-space: nowrap; width: 0;
    font-family: 'Playfair Display', serif; font-style: italic; position: relative;
}
.signature-draw::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 2px;
    background: #A0A0A0; box-shadow: 0 0 10px #A0A0A0; opacity: 0;
}
.signature-draw.animate { animation: write 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards; }
.signature-draw.animate::after { animation: pen-move 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards; }
@keyframes write { from { width: 0; } to { width: 100%; } }
@keyframes pen-move { 0% { opacity: 1; } 95% { opacity: 1; } 100% { opacity: 0; } }

/* Atomic Button Animation */
@keyframes atomic-glow {
    0% { box-shadow: 0 0 0 0 rgba(160, 160, 160, 0.7); background-position: 0% 50%; transform: scale(1); }
    50% { box-shadow: 0 0 30px 10px rgba(160, 160, 160, 0.5); background-position: 100% 50%; transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(160, 160, 160, 0); background-position: 0% 50%; transform: scale(1); }
}

.btn-atomic {
    background: linear-gradient(45deg, #A0A0A0, #f3f4f6, #A0A0A0);
    background-size: 200% 200%;
    animation: atomic-glow 2s infinite cubic-bezier(0.66, 0, 0, 1);
    border: 1px solid rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Checkbox Styling */
input[type="checkbox"] {
    accent-color: #b89f5e;
}

/* Shake Animation for Errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.error-msg {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}