/* Contact Page Styles */

/* Alert styles */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.alert.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    display: block;
}

.alert.alert-success::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
    color: #10b981;
}

.alert.alert-success {
    padding-left: 48px;
}

.alert.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    display: block;
}

.alert.alert-danger::before {
    content: "⚠";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
    color: #ef4444;
}

.alert.alert-danger {
    padding-left: 48px;
}

/* 動畫效果 */
.alert {
    animation: slideInDown 0.3s ease-out;
}

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

/* 按鈕隱藏動畫 */
.btn-send {
    transition: all 0.3s ease;
}

.btn-send.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Contact page specific styles */
.contact-us-title {
    padding: 0 20px;
    font-family: Inter;
    font-weight: 300;
    font-style: Light;
    font-size: 48px;
    leading-trim: NONE;
    line-height: 64px;
    letter-spacing: -1.2%;
    color: #1F2937;
}

/* 頁面內快速樣式：開關 */
.ndh-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px
}

.ndh-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.ndh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #D1D5DB;
    transition: .2s;
    border-radius: 999px
}

.ndh-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background: white;
    transition: .2s;
    border-radius: 50%
}

.ndh-switch input:checked+.ndh-slider {
    background: #1F2937
}

.ndh-switch input:checked+.ndh-slider:before {
    transform: translateX(18px)
}

.floating-image-card {
    width: 400px;
    background: #F3F4F6;
    border-radius: 16px;
}

.info-card {
    margin: 48px;
}

.info-card-title {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: -0.5%;
    color: #1F2937;
    margin-bottom: 8px;
}

.info-card-content {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 20px;
    letter-spacing: 0%;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1F2937;
}

/* Contact email link styles */
.contact-email-link {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.contact-email-link:hover {
    text-decoration: underline;
}