html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: #fff;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 20px;
}

.form-header {
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-header h2 {
    color: #2D00EA;
    margin: 0;
    font-size: 1.5rem;
}

.countdown-timer {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    display:none;
}

.countdown-timer #countdown {
    color: #e74c3c;
    font-weight: bold;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #4216FB, #6845FC);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #2D00EA;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:hover,
.form-group select:hover {
    border: 2px solid #4216FB;
    padding: 9px 11px; /* 减少1px的padding以保持元素大小一致 */
}

/* 电话输入容器样式 */
.phone-input-container {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
}

/* 国家代码选择器样式 */
.country-code-selector {
    position: relative;
    min-width: 90px;
    margin-right: 8px;
}

.selected-country {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    height: 20px;
    transition: border-color 0.3s;
}

.selected-country:hover {
    border: 2px solid #4216FB;
    padding: 9px 7px; /* 减少1px的padding以保持元素大小一致 */
}

.country-flag {
    width: 24px;
    height: 16px;
    margin-right: 5px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.country-code {
    font-size: 0.9rem;
    margin-right: 5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #666;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.country-dropdown.show {
    display: block;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
}

.country-item:hover {
    background-color: #f5f5f5;
}

.country-item .country-flag {
    margin-right: 8px;
}

.country-item .country-name {
    font-size: 0.85rem;
    margin-right: 5px;
    flex-grow: 1;
}

.country-item .country-code {
    font-size: 0.85rem;
    color: #666;
}

/* 电话号码输入框样式 */
#phoneNumber {
    flex-grow: 1;
}

/* 电话提示文本样式 */
.phone-hint {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

/* WhatsApp链接样式 */
.whatsapp-link {
    color: #25D366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    text-decoration: underline;
    color: #128C7E;
}

.form-group select {
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}



.form-group input:focus,
.form-group select:focus {
    border: 2px solid #4216FB;
    padding: 9px 11px; /* 减少1px的padding以保持元素大小一致 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 22, 251, 0.2);
}



.error-message {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.button-group.single-button {
    justify-content: flex-end;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-next {
    background: linear-gradient(90deg, #4216FB, #6845FC);
    color: white;
}

.btn-prev {
    background-color: #ecf0f1;
    color: #7f8c8d;
    flex: 0.3;
}

.btn-submit {
    background: linear-gradient(90deg, #6845FC, #2D00EA);
    color: white;
    flex: 1;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 12px;
}

/* Countdown Timer Styles */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
}

.countdown-item {
  width: 26px;
  height: 26px;
  background: rgba(255, 80, 0, 0.08);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
}

.countdown-item span {
  width: 17px;
  height: 22px;
  font-family: 'PingFang SC', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #FF5000;
  line-height: 22px;
  text-align: center;
  font-style: normal;
  text-transform: none;
}

.countdown-separator {
  color: #FF5000;
  font-weight: 600;
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    button {
        padding: 10px 15px;
    }
}