/**
 * Contact Page Styles
 * RiseCreatives 聯絡我們頁面樣式
 */

/* ==================== Contact Section ==================== */
.rise-theme-contact-page {
    width: 100%;
    overflow-x: hidden;
}

.rise-theme-contact-section {
    width: 100%;
    min-height: 100vh;
}

.rise-theme-contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ==================== Left Column - Contact Info ==================== */
.rise-theme-contact-left {
    background-image: url('/wp-content/uploads/2025/01/RiseCreatives-雜訊灰背景.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.rise-theme-contact-info {
    max-width: 500px;
    width: 100%;
}

.rise-theme-contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.rise-theme-contact-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #3F776F;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.rise-theme-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rise-theme-contact-item {
    border-bottom: 1px solid rgba(63, 119, 111, 0.2);
    padding-bottom: 1.5rem;
}

.rise-theme-contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rise-theme-contact-label {
    font-size: 1rem;
    font-weight: 600;
    color: #3F776F;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rise-theme-contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A4A4A;
    margin: 0;
}

.rise-theme-contact-link {
    color: #3F776F;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.rise-theme-contact-link:hover {
    color: #2C5951;
    text-decoration: underline;
}

/* ==================== Right Column - Form Area ==================== */
.rise-theme-contact-right {
    background-image: url('/wp-content/uploads/2025/01/RiseCreatives-綠色雜訊背景.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.rise-theme-contact-form-wrapper {
    max-width: 600px;
    width: 100%;
    padding: 0;
}

/* ==================== Form Styling ==================== */
/* WPForms 基礎樣式覆寫 */
.rise-theme-contact-form-wrapper .wpforms-container {
    margin: 0;
    padding: 0;
}

.rise-theme-contact-form-wrapper .wpforms-field-label {
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
}

.rise-theme-contact-form-wrapper input[type="text"],
.rise-theme-contact-form-wrapper input[type="email"],
.rise-theme-contact-form-wrapper input[type="tel"],
.rise-theme-contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rise-theme-contact-form-wrapper input[type="text"]:focus,
.rise-theme-contact-form-wrapper input[type="email"]:focus,
.rise-theme-contact-form-wrapper input[type="tel"]:focus,
.rise-theme-contact-form-wrapper textarea:focus {
    border-color: #3F776F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 119, 111, 0.1);
}

.rise-theme-contact-form-wrapper button[type="submit"],
.rise-theme-contact-form-wrapper .wpforms-submit {
    background-color: #3F776F;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rise-theme-contact-form-wrapper button[type="submit"]:hover,
.rise-theme-contact-form-wrapper .wpforms-submit:hover {
    background-color: #2C5951;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 119, 111, 0.3);
}

/* ==================== Responsive Design ==================== */
/* Tablet 視圖 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .rise-theme-contact-left,
    .rise-theme-contact-right {
        padding: 60px 40px;
    }
    
    .rise-theme-contact-title {
        font-size: 2rem;
    }
    
    .rise-theme-contact-subtitle {
        font-size: 1.5rem;
    }
}

/* Mobile 視圖 (< 768px) */
@media screen and (max-width: 768px) {
    .rise-theme-contact-container {
        grid-template-columns: 1fr;
    }
    
    .rise-theme-contact-left {
        min-height: 60vh;
        padding: 40px 30px;
    }
    
    .rise-theme-contact-right {
        min-height: 70vh;
        padding: 40px 30px;
    }
    
    .rise-theme-contact-title {
        font-size: 1.8rem;
    }
    
    .rise-theme-contact-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .rise-theme-contact-details {
        gap: 1.5rem;
    }
    
    .rise-theme-contact-form-wrapper {
        padding: 30px 25px;
    }
}

/* Small Mobile 視圖 (< 480px) */
@media screen and (max-width: 480px) {
    .rise-theme-contact-left,
    .rise-theme-contact-right {
        padding: 30px 20px;
    }
    
    .rise-theme-contact-title {
        font-size: 1.5rem;
    }
    
    .rise-theme-contact-subtitle {
        font-size: 1.1rem;
    }
    
    .rise-theme-contact-label {
        font-size: 0.9rem;
    }
    
    .rise-theme-contact-text {
        font-size: 1rem;
    }
    
    .rise-theme-contact-form-wrapper {
        padding: 25px 20px;
    }

    .rise-theme-contact-form-wrapper button[type="submit"],
    .rise-theme-contact-form-wrapper .wpforms-submit {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

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

.rise-theme-contact-info {
    animation: fadeInUp 0.8s ease-out;
}

.rise-theme-contact-form-wrapper {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ==================== Print Styles ==================== */
@media print {
    .rise-theme-contact-left,
    .rise-theme-contact-right {
        background-image: none !important;
        background-color: white !important;
    }
}

/* WPForms 聯絡表單樣式 */
.rise-wpforms-contact-form .wpforms-field {
    display: flex;
	align-items: center;
}
.rise-wpforms-contact-form .wpforms-field-large,
.rise-wpforms-contact-form .wpforms-field-medium {
    flex: 2;
	background: none !important;
    border: none !important;
    border-bottom: solid 1.5px #497D73 !important;
    border-radius: 0 !important;
}
.rise-wpforms-contact-form .wpforms-field-label {
    flex: 1;
	color: #3F776F !important;
}
.rise-wpforms-contact-form-btn {
    width: 12em !important;
    border-radius: 100px !important;
    background-color: #3F776F !important;
}
.rise-wpforms-contact-form .wpforms-submit-container {
    margin-top: 3em !important;
    text-align: right;
}