@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
    background-image: url(../img/dlegetion-form-bg.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#header-placeholder {
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.whole-form {
    margin: 60px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 0px;
    width: 100%;
}

/* New: Intro and Step Indicator */
.form-intro {
    max-width: 900px;
    width: 90%;
    color: #fff;
    text-align: center;
    margin-top: 110px;
}

.form-subtitle {
    font-size: 16px;
    color: #f1efe9;
    opacity: 0.9;
    margin: 0 auto 16px;
    max-width: 800px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 12px auto 0;
}

.step-indicator .divider {
    height: 2px;
    width: 50px;
    background: linear-gradient(90deg, rgba(205,176,111,.3), rgba(255,255,255,.25));
}

.step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #e7d9bd;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
    transition: transform .25s ease;
}

.step-indicator .step:hover { transform: translateY(-2px); }

.step-indicator .step-index {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(205,176,111,.55);
    color: #fff;
    font-weight: 700;
}

.step-indicator .step.active .step-index {
    background: linear-gradient(135deg, #cdb06f, #e2c280);
    border-color: #fff;
    color: #420c02;
    box-shadow: 0 8px 20px rgba(205,176,111,.35);
}

.step-indicator .step.done .step-index{
  background: linear-gradient(135deg, #7bbf7b, #9be39b);
  border-color: #eaffea; 
  color:#153b15;
  box-shadow: 0 8px 20px rgba(123,191,123,.35);
}

.step-indicator .step small{ opacity:.85; }

.contactForm {
    background-color: #45110b96;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #c9ac6e;
    display: flex !important;
    flex-direction: column !important;
    width: 65% !important;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
    transition: transform 0.3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: visible;
}

.contactForm:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 200px at -10% -10%, rgba(255,255,255,.05), transparent 40%),
                radial-gradient(800px 140px at 120% 120%, rgba(205,176,111,.08), transparent 40%);
    pointer-events: none;
}

.contactForm:hover{
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 18px 45px rgba(0,0,0,.45), 0 0 0 1px rgba(205,176,111,.25);
}

/* Field grouping for better layout on wide screens */
.contactForm .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

input.inputs,
textarea,
select {
    height: 46px !important;
    width: 100% !important;
    background-color: rgba(255,255,255,.03) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-bottom: 2px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
    font-size: 16px !important;
    outline: none !important;
    padding: 10px 12px !important;
    transition: border-color 0.25s ease, box-shadow .25s ease, background .25s ease !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
}

textarea { min-height: 110px !important; resize: vertical !important; }

input.inputs:focus,
textarea:focus,
select:focus {
    border-color: #cdb06f !important;
    box-shadow: 0 6px 18px rgba(205,176,111,.25) !important;
    background-color: rgba(255,255,255,.06) !important;
}

input.inputs::placeholder { color: rgba(255,255,255,.55) !important; }

label {
    font-weight: 700;
    font-size: 18px;
    margin: 6px 6px 8px;
    color: #f2e9d6;
}

.sectionTitle {
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.page-heading {
    font-weight: 900;
    padding: 12px 22px;
    margin: 30px;
    margin-top: 120px;
    margin-bottom: 2px;
    color: white;
    align-self: center;
    text-shadow: 0 0 5px #986761, 0 0 12px rgba(152,103,97,.6);
    letter-spacing: .5px;
    transition: transform 0.3s ease;
}

.page-heading:hover{ transform: translateY(-6px) scale(1.04) }

.middle-layer {
    background-color: #45110b3f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

#submit-btn {
    width: 260px;
    height: 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #cdb06f, #e2c280);
    border: none;
    font-size: 18px;
    color: #420c02;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow .25s ease, filter .25s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 10px 24px rgba(205,176,111,.35);
}

#submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(205,176,111,.45);
    filter: brightness(1.03);
    background-color: white;
}

#submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    cursor: pointer !important;
}

select:focus {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23cdb06f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14l5-5 5 5z"/></svg>') !important;
}

/* Step navigation and form transitions */
.form-nav{ 
  display:flex; 
  gap:12px; 
  justify-content:flex-end; 
  margin-top: 20px; 
  align-items: center;
}

.nav-btn{ 
  padding: 12px 20px; 
  border-radius: 14px; 
  border: none; 
  cursor: pointer; 
  background: linear-gradient(135deg, #cdb06f, #e2c280); 
  color:#420c02; 
  font-weight: 800; 
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(205,176,111,.35); 
  transition: transform .2s ease, box-shadow .2s ease; 
  min-width: 100px;
}

.nav-btn:hover{ 
  transform: translateY(-2px); 
  box-shadow: 0 14px 30px rgba(205,176,111,.45);
}

.nav-btn.ghost{ 
  background: transparent; 
  color:#f2e9d6; 
  border:2px solid rgba(255,255,255,.25); 
  box-shadow: none; 
  font-weight: 700; 
}

.nav-btn.ghost:hover{ 
  background: rgba(255,255,255,.08); 
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}

/* Multi-step form transitions */
.form-step{ 
  max-height: 0; 
  opacity: 0; 
  pointer-events: none; 
  padding: 0; 
  margin: 0;
  overflow: hidden;
  transform: translateY(20px); 
  transition: max-height .4s ease, opacity .3s ease, transform .3s ease, padding .3s ease; 
}

.form-step.active{ 
  max-height: 2000px; 
  opacity: 1; 
  pointer-events: auto; 
  padding: 40px; 
  transform: translateY(0); 
}

/* Hide inactive steps completely */
.form-step:not(.active) {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.form-step.active {
  position: relative;
  left: auto;
  visibility: visible;
}

.essays {
    font-size: 15px;
    font-weight: 500;
    color: #f3ead7;
}

.confirmations{
    color: rgb(235, 233, 230);
    font-size: 16px;
}

#form-message{
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

/* Progress bar */
.progressbar{ 
  width: 90%; max-width: 900px; height: 8px; margin: 14px auto 0; 
  background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; 
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); 
}
.progressbar-fill{ height: 100%; width: 0%; 
  background: linear-gradient(90deg, #cdb06f, #e2c280); 
  box-shadow: 0 6px 16px rgba(205,176,111,.35); transition: width .35s ease; }

/* Step nav buttons */
.form-nav{ display:flex; gap:12px; justify-content:flex-end; margin-top: 10px; }
.nav-btn{ 
  padding: 10px 16px; border-radius: 12px; border: none; cursor: pointer; 
  background: linear-gradient(135deg, #cdb06f, #e2c280); color:#420c02; font-weight: 800; 
  box-shadow: 0 10px 24px rgba(205,176,111,.35); transition: transform .2s ease, box-shadow .2s ease; 
}
.nav-btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(205,176,111,.45) }
.nav-btn.ghost{ 
  background: transparent; color:#f2e9d6; border:1px solid rgba(255,255,255,.25); 
  box-shadow: none; font-weight: 700; 
}
.nav-btn.ghost:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.45) }

/* Remove conflicting step rules - using the newer ones above */

/* Improve readability of labels on glass background */
label{ text-shadow: 0 1px 2px rgba(0,0,0,.25) }

/* Fix select dropdown styling - Force option visibility */
select.inputs {
    background-color: rgba(255,255,255,.1) !important;
    border: 2px solid rgba(255,255,255,.2) !important;
    color: #fff !important;
    position: relative;
    z-index: 5;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    min-height: 60px !important;
    line-height: 1.6 !important;
    font-size: 17px !important;
}

/* Force option visibility with complete text display */
select.inputs option {
    background-color: #2d0f0a !important;
    background: #2d0f0a !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    height: auto !important;
}

/* Webkit specific option fixes */
select.inputs option:not([value=""]) {
    background-color: #2d0f0a !important;
    color: #fff !important;
    font-weight: 600 !important;
    min-height: 50px !important;
}

select.inputs option[value=""] {
    color: rgba(255,255,255,0.6) !important;
    font-style: italic !important;
    background-color: #2d0f0a !important;
    min-height: 50px !important;
}

select.inputs option:hover,
select.inputs option:focus,
select.inputs option:checked,
select.inputs option:active {
    background-color: #cdb06f !important;
    background: #cdb06f !important;
    color: #2d0f0a !important;
    font-weight: 700 !important;
    min-height: 50px !important;
}

/* Alternative approach - force with !important and specific selectors */
select[name="Committee"] option,
select[name="Delegation-country"] option {
    background-color: #2d0f0a !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    min-height: 50px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    height: auto !important;
}

/* Enhanced dropdown arrow */
select.inputs {
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 18px !important;
    padding: 18px 50px 18px 20px !important;
}

select.inputs:focus {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23cdb06f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14l5-5 5 5z"/></svg>') !important;
    border-color: #cdb06f !important;
    box-shadow: 0 0 0 3px rgba(205,176,111,.15) !important;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select.inputs {
        background-color: rgba(255,255,255,.1) !important;
        color: #fff !important;
        min-height: 60px !important;
        font-size: 17px !important;
    }
    
    select.inputs option {
        background-color: #2d0f0a !important;
        color: #fff !important;
        padding: 16px 20px !important;
        min-height: 50px !important;
        line-height: 1.8 !important;
        font-size: 17px !important;
    }
    
    select.inputs option[value=""] {
        color: rgba(255,255,255,0.6) !important;
    }
}

/* Force visibility on all browsers */
select.inputs,
select.inputs * {
    forced-color-adjust: none !important;
}

/* Custom select wrapper enhancements */
.custom-select-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.custom-select-wrapper select.inputs {
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 60px !important;
}

.custom-select-wrapper select.inputs.has-value {
    color: #fff !important;
    font-weight: 600 !important;
}

/* Enhanced focus and hover states */
select.inputs:focus,
select.inputs:hover {
    background-color: rgba(255,255,255,.12) !important;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    select.inputs {
        font-size: 17px !important; /* Prevents zoom on iOS */
        padding: 16px 45px 16px 16px !important;
        min-height: 58px !important;
    }
    
    select.inputs option {
        font-size: 17px !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
        line-height: 1.7 !important;
    }
}

/* Responsive */
@media screen and (max-width: 992px){
    .contactForm{ width: 80% !important; padding: 28px; }
    .form-nav{ flex-direction: column; gap: 8px; }
    .nav-btn{ width: 100%; }
}

@media screen and (max-width: 768px){
    .form-intro{ margin-top: 90px; }
    .contactForm{ width: 92% !important; padding: 22px; }
    .step-indicator .divider{ width: 34px; }
    .step-indicator{ flex-wrap: wrap; gap: 8px; }
    .step-indicator .step{ margin: 0 4px; }
}

@media screen and (max-width: 480px){
    .page-heading{ margin-top: 20px; padding: 5px; }
    .contactForm{ width: 94% !important; border-radius: 16px; }
    .sectionTitle{ font-size: 22px; }
    label{ font-weight: 700; font-size: 16px; margin: 4px; }
    input.inputs, textarea, select{ font-size: 15px !important; }
    .form-nav{ gap: 6px; }
    .nav-btn{ padding: 10px 16px; font-size: 13px; }
}

/* Enhanced select styling */
select.inputs {
    position: relative;
    z-index: 1;
}

select.inputs:hover {
    border-color: rgba(205,176,111,.7) !important;
}

/* Improved form field focus states */
input.inputs:focus,
textarea:focus,
select:focus {
    border-color: #cdb06f !important;
    box-shadow: 0 6px 18px rgba(205,176,111,.25) !important;
    background-color: rgba(255,255,255,.08) !important;
    transform: translateY(-1px);
}

/* Add subtle animations */
input.inputs,
textarea,
select {
    transition: border-color 0.25s ease, box-shadow .25s ease, background .25s ease, transform .2s ease !important;
}

/* Step completion indicator with animation */
.step-indicator .step.done::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #7bbf7b, #9be39b);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    box-shadow: 0 3px 12px rgba(123,191,123,.5);
    animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.step-indicator .step {
    position: relative;
    cursor: pointer;
}

/* Floating labels animation */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: rgba(45, 15, 10, 0.9);
    padding: 0 8px;
    color: rgba(255,255,255,.7);
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.inputs:focus + .floating-label,
.inputs:not(:placeholder-shown) + .floating-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #cdb06f;
    background: rgba(45, 15, 10, 0.95);
}

/* Enhanced glass card effects */
.contactForm::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(600px 300px at 20% 30%, rgba(205,176,111,.08), transparent 50%),
        radial-gradient(800px 200px at 80% 70%, rgba(255,255,255,.03), transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,.02), transparent);
    pointer-events: none;
    border-radius: inherit;
}

/* Progressive disclosure loading effect */
.form-step.active {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Enhanced input focus with glow */
input.inputs:focus,
textarea:focus,
select.inputs:focus {
    border-color: #cdb06f !important;
    box-shadow: 
        0 6px 20px rgba(205,176,111,.25),
        0 0 0 3px rgba(205,176,111,.1),
        inset 0 1px 0 rgba(255,255,255,.1) !important;
    background-color: rgba(255,255,255,.08) !important;
    transform: translateY(-2px);
}

/* Countdown Timer Styles */
.countdown-container {
    background: rgba(69, 17, 11, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    border: 1px solid rgba(205, 176, 111, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205,176,111,.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.countdown-header h3 {
    color: #cdb06f;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    letter-spacing: 0.5px;
}

.countdown-header p {
    color: #f2e9d6;
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.9;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(205, 176, 111, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #cdb06f, #e2c280);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.countdown-item:hover::before {
    transform: scaleX(1);
}

.countdown-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(205, 176, 111, 0.6);
    box-shadow: 0 12px 25px rgba(205,176,111,.2);
}

.countdown-number {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    transition: all 0.3s ease;
    font-family: 'Poppins', monospace;
}

.countdown-number.flip {
    animation: numberFlip 0.6s ease-in-out;
}

@keyframes numberFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); color: #cdb06f; }
    100% { transform: rotateY(0deg); }
}

.countdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #cdb06f;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Urgency States */
.countdown-container.urgent {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(69, 17, 11, 0.8);
}

.countdown-container.urgent .countdown-item {
    border-color: rgba(255, 193, 7, 0.4);
}

.countdown-container.urgent .countdown-number {
    color: #ffc107;
}

.countdown-container.critical {
    border-color: rgba(255, 152, 0, 0.5);
    background: rgba(69, 17, 11, 0.85);
    animation: criticalPulse 2s ease-in-out infinite;
}

.countdown-container.critical .countdown-item {
    border-color: rgba(255, 152, 0, 0.5);
}

.countdown-container.critical .countdown-number {
    color: #ff9800;
}

.countdown-container.final-hours {
    border-color: rgba(244, 67, 54, 0.6);
    background: rgba(69, 17, 11, 0.9);
    animation: finalHoursPulse 1s ease-in-out infinite;
}

.countdown-container.final-hours .countdown-item {
    border-color: rgba(244, 67, 54, 0.6);
    animation: itemShake 0.5s ease-in-out infinite;
}

.countdown-container.final-hours .countdown-number {
    color: #f44336;
    animation: urgentFlash 1s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { 
        box-shadow: 0 15px 35px rgba(0,0,0,.25), 0 0 0 0 rgba(255, 152, 0, 0.3);
    }
    50% { 
        box-shadow: 0 15px 35px rgba(0,0,0,.25), 0 0 0 8px rgba(255, 152, 0, 0.1);
    }
}

@keyframes finalHoursPulse {
    0%, 100% { 
        box-shadow: 0 15px 35px rgba(0,0,0,.25), 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    50% { 
        box-shadow: 0 15px 35px rgba(0,0,0,.25), 0 0 0 10px rgba(244, 67, 54, 0.1);
    }
}

@keyframes itemShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes urgentFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Deadline Warning */
.deadline-warning {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.5);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.deadline-warning h3 {
    color: #f44336;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.deadline-warning p {
    color: #ffebee;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Form Expired Overlay */
.form-expired-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(69, 17, 11, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 1000;
}

.expiry-message {
    text-align: center;
    padding: 40px;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.expiry-message h3 {
    color: #f44336;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.expiry-message p {
    color: #ffebee;
    font-size: 16px;
    margin: 10px 0;
    font-weight: 500;
}

.expiry-message a {
    color: #cdb06f;
    text-decoration: none;
    font-weight: 600;
}

.expiry-message a:hover {
    color: #e2c280;
    text-decoration: underline;
}

/* Deadline Notification */
.deadline-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    background: rgba(244, 67, 54, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(244, 67, 54, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.notification-text p {
    color: #ffebee;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Pulse animations */
.pulse-urgent {
    animation: pulseUrgent 2s ease-in-out infinite;
}

.pulse-critical {
    animation: pulseCritical 1s ease-in-out infinite;
}

.flash-warning {
    animation: flashWarning 0.5s ease-in-out infinite;
}

@keyframes pulseUrgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes pulseCritical {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes flashWarning {
    0%, 100% { background-color: rgba(255, 255, 255, 0.08); }
    50% { background-color: rgba(244, 67, 54, 0.2); }
}

/* Mobile responsiveness for countdown */
@media (max-width: 768px) {
    .countdown-container {
        margin: 20px 0;
        padding: 20px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .countdown-header h3 {
        font-size: 20px;
    }
    
    .countdown-header p {
        font-size: 14px;
    }
    
    .deadline-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .countdown-number {
        font-size: 20px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
}

/* Enhanced page loading and transition effects */
body {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

body.loaded {
    opacity: 1;
}

.form-step .input-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.form-step.active .input-group {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects for better user feedback */
.inputs:hover {
    border-color: rgba(205,176,111,.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(205,176,111,.15);
}

.btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.3) !important;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(205,176,111,.3);
}

/* Micro-interactions for better UX */
.inputs:focus {
    animation: inputFocusPulse 0.3s ease-out;
}

@keyframes inputFocusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Enhanced step indicator with better visual feedback */
.step-indicator .step {
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.step-indicator .step:hover:not(.active):not(.done) {
    background: rgba(205,176,111,.3);
    border-color: rgba(205,176,111,.6);
    transform: scale(1.1);
}

.step-indicator .step.active {
    animation: stepActivePulse 2s ease-in-out infinite;
}

@keyframes stepActivePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(205,176,111,.7);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(205,176,111,.1);
    }
}

/* Enhanced progress bar with gradient */
.progressbar {
    background: linear-gradient(90deg, 
        rgba(255,255,255,.1) 0%, 
        rgba(255,255,255,.05) 50%, 
        rgba(255,255,255,.1) 100%);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progressbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,.1), 
        transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progressbar-fill {
    background: linear-gradient(135deg, 
        #cdb06f 0%, 
        #e6c77a 50%, 
        #cdb06f 100%);
    box-shadow: 0 2px 10px rgba(205,176,111,.3);
    transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progressbar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,.3), 
        transparent);
    animation: fillShimmer 3s ease-in-out infinite;
}

@keyframes fillShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced form validation feedback */
.inputs.invalid {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255,107,107,.15) !important;
    animation: shakeInput 0.5s ease-in-out;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.inputs.valid {
    border-color: #7bbf7b !important;
    box-shadow: 0 0 0 3px rgba(123,191,123,.15) !important;
}

/* Success state animation */
.form-step.completed {
    animation: stepComplete 0.6s ease-out;
}

@keyframes stepComplete {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Enhanced submit button states */
#submit-btn {
    position: relative;
    overflow: hidden;
}

#submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,.2), 
        transparent);
    transition: left 0.6s ease;
}

#submit-btn:hover::before {
    left: 100%;
}

#submit-btn.loading {
    color: transparent;
    pointer-events: none;
}

#submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #420c02;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#submit-btn.success {
    background: linear-gradient(135deg, #7bbf7b, #9be39b) !important;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Notification animations */
@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(100%); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideOutRight {
    from { 
        opacity: 1; 
        transform: translateX(0); 
    }
    to { 
        opacity: 0; 
        transform: translateX(100%); 
    }
}

/* Enhanced responsive design for mobile devices */
@media (max-width: 768px) {
    .contactForm {
        width: 95% !important;
        padding: 20px !important;
        margin: 20px auto !important;
    }
    
    .step-indicator {
        gap: 8px;
    }
    
    .step-indicator .step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .inputs, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 14px !important;
    }
    
    .form-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .notification-success,
    .notification-error {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .inputs::placeholder {
        color: rgba(255,255,255,.5) !important;
    }
    
    .custom-select-wrapper select option {
        background-color: #1a1a1a !important;
    }
}

/* Form Submission Success Overlay */
.form-submitted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(69, 17, 11, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 1000;
    animation: fadeInSubmissionOverlay 0.8s ease-out;
}

.submission-success-message {
    text-align: center;
    padding: 50px 40px;
    max-width: 600px;
    color: #fff;
    animation: slideUpSuccess 1s ease-out 0.3s both;
}

.success-icon {
    font-size: 80px;
    color: #7bbf7b;
    margin-bottom: 20px;
    animation: successIconPop 0.8s ease-out 0.6s both;
    text-shadow: 0 0 20px rgba(123, 191, 123, 0.5);
}

.submission-success-message h2 {
    font-size: 32px;
    font-weight: 800;
    color: #cdb06f;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.submission-success-message > p {
    font-size: 18px;
    color: #f2e9d6;
    margin: 0 0 30px 0;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.stay-tuned-message {
    background: rgba(123, 191, 123, 0.1);
    border: 2px solid rgba(123, 191, 123, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.stay-tuned-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: #7bbf7b;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.stay-tuned-message p {
    font-size: 16px;
    color: #e8f5e8;
    margin: 8px 0;
    line-height: 1.5;
}

.refresh-note {
    background: rgba(205, 176, 111, 0.1);
    border: 1px solid rgba(205, 176, 111, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.refresh-note small {
    font-size: 14px;
    color: #cdb06f;
    font-weight: 600;
    display: block;
    line-height: 1.4;
}

.contact-info {
    margin-top: 25px;
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

.contact-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.contact-info a {
    color: #cdb06f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #e2c280;
    text-decoration: underline;
}

/* Success Overlay Animations */
@keyframes fadeInSubmissionOverlay {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(15px);
    }
}

@keyframes slideUpSuccess {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes successIconPop {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-180deg); 
    }
    50% { 
        transform: scale(1.2) rotate(0deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Pulsing glow effect for success elements */
.stay-tuned-message {
    animation: fadeInUp 0.8s ease-out 1.2s both, successGlow 3s ease-in-out 2s infinite;
}

@keyframes successGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(123, 191, 123, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(123, 191, 123, 0.3);
    }
}

/* Enhanced submission overlay for mobile */
@media (max-width: 768px) {
    .submission-success-message {
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .submission-success-message h2 {
        font-size: 24px;
    }
    
    .submission-success-message > p {
        font-size: 16px;
    }
    
    .stay-tuned-message h3 {
        font-size: 20px;
    }
    
    .stay-tuned-message p {
        font-size: 14px;
    }
    
    .refresh-note small {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .submission-success-message {
        padding: 20px 15px;
    }
    
    .success-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .submission-success-message h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .stay-tuned-message {
        padding: 20px 15px;
    }
    
    .refresh-note {
        padding: 12px;
    }
}
