body {
  font-family: "Playfair Display", serif;
  margin: 0;
  padding: 0;
}

.form-page-container {
    min-height: 100vh; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
.breadcrumbs {
    display: flex;
    margin-bottom: 40px;
    margin-top: 35px;
}

.crumb {
    position: relative;
    background: #4dd0e1;
    padding: 8px 20px 8px 30px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 5px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 10% 50%);
}

.crumb.home {
    padding-left: 20px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.crumb.current {
    background: #4dd0e1; 
    opacity: 0.8;
}

/* Page Title */
.page-title {
    font-size: 42px;
    color: #91bc5e;
    font-weight: 400;
    text-align: center;
    margin: 0 0 50px 0;
    letter-spacing: 2px;
}

/* Form Card */
.form-card {
    background: #ffffff;
    width: 100%;
    max-width: 850px; 
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

/* Form Sections */
.form-section {
    border: 3px solid #106c73;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.form-section:last-child {
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    font-size: 26px;
    color: #91bc5e;
    font-weight: 400;
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Grid System */
.form-row {
    display: flex;
    gap: 25px; 
    margin-bottom: 20px;
}

.form-group {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

/* Full width inputs */
.form-group.full-width {
    width: 100%;
    margin-bottom: 20px;
}

/* Labels */
label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

/* Inputs & Selects */
input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none; 
}

/* Readonly Input */
.readonly-input {
    background-color: #f9fcfc;
    font-weight: bold;
    cursor: default;
}

/* Button */
.form-footer {
    margin-top: 35px;
    text-align: center;
}

.btn-enquiry {
    background-color: #2ab7a9;
    color: white;
    border: none;
    padding: 16px 80px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    width: auto;
}

.btn-enquiry:hover {
    background-color: #4fb6b2;
}


/* =========================================
   Tablet Responsive (1024px and below)
   ========================================= */
@media screen and (max-width: 1024px) {
    .form-page-container {
        padding: 30px 20px 60px;
    }

    .page-title {
        font-size: 36px;
    }

    .form-card {
        max-width: 100%;
    }
    
    .form-section {
        padding: 35px;
    }

    .form-row {
        gap: 20px; 
    }
}


/* =========================================
   Mobile Responsive (768px and below)
   ========================================= */
@media screen and (max-width: 768px) {
    .form-page-container {
        padding: 20px 15px 40px; 
    }

    .breadcrumbs {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .crumb {
        font-size: 0.8rem;
        padding: 6px 15px 6px 20px;
    }

    .crumb.home {
        padding-left: 15px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .form-card {
        max-width: 100%;
    }

    .form-section {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-width: 2px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    /* Stack everything vertically on mobile */
    .form-row {
        flex-direction: column; 
        gap: 0;
        margin-bottom: 0;
    }

    /* Add space between stacked items */
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Ensure specific inputs are full width */
    input, select {
        width: 100%; 
        font-size: 16px; 
        padding: 12px;
    }

    .btn-enquiry {
        width: 100%;
        padding: 15px 0;
        font-size: 18px;
    }
}

/*No Refresh Part*/
 /* Modal background */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    font-size: 18px;
    position: relative;
}

/* Close button */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
}

/* Spinner */
#formLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}