/* Contact Page Styles */
:root {
    --primary-color: #c8a97e;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-text: #fff;
    --background: #fff;
    --section-bg: #f9f9f9;
    --transition: all 0.3s ease;
}

/* Navbar Styles */


/* Hero Section */
.about-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: url(image/jp_phl_08.jpg) center/cover no-repeat;
}

.contact-hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding: 0 2rem;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.hero-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.hero-tag:hover::before {
    left: 100%;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 3px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.6rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Cards Section */
.contact-cards {
    padding: 10rem 0;
    background: var(--background);
    position: relative;
}

.contact-cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-card {
    background: var(--background);
    padding: 4rem 2.5rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200, 169, 126, 0.1);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.contact-card:hover .card-icon::before {
    transform: translateX(100%);
}

.contact-card:hover .card-icon {
    transform: rotateY(180deg);
    background: var(--secondary-color);
}

.card-icon i {
    font-size: 2.2rem;
    color: var(--light-text);
}

.contact-card h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    z-index: 1;
}

.contact-card p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-top: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--secondary-color);
}

.card-link:hover i {
    transform: translateX(8px);
}

/* Contact Form Section */
.contact-form-section {
    padding: 10rem 0;
    background: var(--section-bg);
    position: relative;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--background);
    padding: 5rem;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.form-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-header h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(200, 169, 126, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(200, 169, 126, 0.2);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 0 5px;
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 14px;
    background-color: white;
    color: var(--primary-color);
}

.form-group select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c8a97e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.viewing-schedule {
    background-color: rgba(200, 169, 126, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(200, 169, 126, 0.2);
}

.viewing-schedule .form-group input,
.viewing-schedule .form-group select {
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        width: 100%;
    }
}

/* Submit Button Animation */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Map Section */
.map-section {
    padding: 10rem 0;
    background: var(--background);
    position: relative;
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200, 169, 126, 0.1), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Footer */

/* Booking Form Styles */
.booking-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(200, 169, 126, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(200, 169, 126, 0.1);
}

.form-section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    padding-left: 1rem;
}

.form-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.full-width {
    width: 100%;
}

/* Checkbox Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: var(--text-color);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid rgba(200, 169, 126, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Date Input Styles */
input[type="date"] {
    position: relative;
    padding-right: 35px;
}

.date-label {
    background: transparent !important;
}

/* Submit Button Styles */
.booking-submit {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #ab8c61);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.2rem 2rem;
}

.booking-submit i {
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-section h3 {
        font-size: 1.3rem;
    }
}

/* Form Animation */
.form-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* map section */
.map-tabs {
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px 10px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:not(:last-child) {
    border-right: 1px solid #eee;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #d4af37, #f2d265);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.tab-btn.active {
    background: #fff;
    color: #333;
    font-weight: 600;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-content {
    background: #fff;
    position: relative;
}

.map-frame {
    display: none;
    width: 100%;
}

.map-frame.active {
    display: block;
}

.location-info {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.location-info h3 {
    margin: 0 0 10px;
    color: #d4af37;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem;
}

.location-info p {
    margin: 5px 0;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.location-info i {
    color: #d4af37;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1rem !important;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .booking-form {
    padding: 0.5rem !important;
  }
  .form-section {
    padding: 0.7rem !important;
    margin-bottom: 1.2rem !important;
    border-radius: 10px;
  }
  .form-header h2 {
    font-size: 1.4rem !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 1.05rem !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
  }
  .form-group label {
    font-size: 1rem !important;
    left: 14px !important;
    top: 16px !important;
    background: #fff !important;
    padding: 0 4px !important;
    z-index: 2;
  }
  .form-group input:focus ~ label,
  .form-group input:not(:placeholder-shown) ~ label,
  .form-group textarea:focus ~ label,
  .form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px !important;
    font-size: 0.9rem !important;
    background: #fff !important;
    color: var(--primary-color) !important;
  }
  .form-section h3 {
    font-size: 1.05rem !important;
    padding-left: 0.5rem !important;
  }
  .submit-btn, .booking-submit {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1.1rem !important;
    padding: 1rem 0 !important;
    margin-top: 1.2rem !important;
    border-radius: 8px !important;
  }
  .star-rating {
    font-size: 2.1rem !important;
    flex-direction: row-reverse !important;
    justify-content: center !important;
    gap: 0.25em !important;
    margin-top: 1.2rem !important;
    margin-bottom: 1.2rem !important;
    width: 100%;
  }
  .star-rating label {
    padding: 0.2em 0.3em !important;
    font-size: inherit !important;
    touch-action: manipulation;
  }
  .star-rating input[type="radio"] {
    min-width: 36px;
    min-height: 36px;
  }
  .checkbox-group {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  .checkbox-container {
    font-size: 0.95rem !important;
    padding-left: 28px !important;
  }
  .checkmark {
    height: 18px !important;
    width: 18px !important;
  }
  html, body {
    overflow-x: hidden !important;
  }
}