/* 联系我们页面表单样式提取自 contact.html 的 TailwindCSS */

.custom-form {
    /* 表单整体间距和背景 */
    /*background: #fff;*/
    border-radius: 0.75rem;
}

.custom-form .form-field {
    margin-bottom: 1.25rem; /* mb-5 */
}

.custom-form label {
    display: block;
    font-size: 1rem; /* text-sm */
    font-weight: 500;
    color: rgb(99, 61, 38); /* text-primary */
    margin-bottom: 0.25rem;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="password"],
.custom-form input[type="date"],
.custom-form input[type="tel"],
.custom-form textarea,
.custom-form select {
    width: 100%;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: none;
    border-bottom: 1px solid #bdbdbd; /* border-b border-gray-400 */
    background: transparent;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s;
    margin-bottom: 0.5rem;
}
.custom-form input[type="checkbox"] {
    margin-left: 0.5rem;
    margin-right: 0.3rem;
}
.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
    border-color: #f97316; /* focus:border-secondary */
}

.custom-form button[type="submit"] {
    background: rgb(99, 61, 38); /* bg-primary */
    color: #fff;
    padding: 0.5rem 2rem; /* px-8 py-2 */
    border-radius: 999px; /* rounded-full */
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    border: none;
    transition: background 0.3s;
}

.custom-form button[type="submit"]:hover {
    background: #f97316; /* hover:bg-secondary */
}

/* 多选下拉组件样式 */
.custom-form .multi-select-dropdown {
    position: relative;
    width: 100%;
}
.custom-form .multi-select-input {
    border-bottom: 1px solid #bdbdbd;
    padding: 0.5rem 1rem;
    background: transparent;
    cursor: pointer;
    min-height: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 1rem;
}
.custom-form .multi-select-input.has-value {
    background: #f8f5ee;
}
.custom-form .multi-select-tag {
    background: rgb(99, 61, 38);
    color: #fff;
    border-radius: 999px;
    padding: 0 10px;
    margin-right: 6px;
    margin-bottom: 2px;
    font-size: 0.95em;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
}
.custom-form .multi-select-tag:hover {
    background: #f97316;
}
.custom-form .multi-select-options {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #eee;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(99, 61, 38, 0.08);
}
.custom-form .multi-select-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.custom-form .multi-select-option.selected,
.custom-form .multi-select-option:hover {
    background: #f97316;
    color: #fff;
}

/* 时间范围选择器样式 */
.custom-form .date-range-picker {
    position: relative;
    width: 100%;
    min-width: 332px;
}
.custom-form .date-range-input {
    border-bottom: 1px solid #bdbdbd;
    padding: 0.5rem 1rem;
    background: transparent;
    cursor: pointer;
    min-height: 2.5rem;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s;
}
.custom-form .date-range-input.has-value {
    background: #f8f5ee;
}
.custom-form .date-range-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #eee;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(99, 61, 38, 0.08);
    padding: 1rem;
    margin-top: 2px;
}
.custom-form .date-range-panel-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.custom-form .date-range-calendar {
    display: inline-block;
    vertical-align: top;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.custom-form .date-range-calendar:last-child {
    margin-right: 0;
}
.custom-form .date-range-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.custom-form .date-range-calendar-head button {
    background: none;
    border: none;
    color: #633d26;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.5rem;
}
.custom-form .date-range-calendar-week {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 0.2rem;
}
.custom-form .date-range-calendar-weekday {
    width: 2rem;
    height: 2rem;
    text-align: center;
}
.custom-form .date-range-calendar-grid {
    display: flex;
    flex-wrap: wrap;
}
.custom-form .date-range-calendar-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.custom-form .date-range-calendar-day {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    margin: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
    color: #333;
}
.custom-form .date-range-calendar-day.selected,
.custom-form .date-range-calendar-day:hover {
    background: #f97316;
    color: #fff;
}

/* 日期选择器格子宽度对齐 */
.custom-form .aligned-cell {
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    text-align: center;
    box-sizing: border-box;
}

.field-tips {
    color: #e53e3e; /* 红色 */
    background: #fff0f0;
    border: 1px solid #e53e3e;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.98rem;
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
    display: block;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
