/* General Styles */

/* Prevent horizontal scroll globally */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    width: 100vw;
    background: #f7f8f3;
    background-size: cover;
}

html {
    overflow-y: scroll;  /* Always reserve scrollbar space */
    overflow-x: hidden; 
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100vw;
    box-sizing: border-box;
    padding-top: 200px;
}



@font-face {
    font-family: 'shrikhand';
    src: url('../fonts/shrikhand.regular.eot');
    src: url('../fonts/shrikhand.regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/shrikhand.regular.ttf') format('opentype');
}


@font-face {
    font-family: 'marcellus';
    src: url('../fonts/marcellus.regular.eot');
    src: url('../fonts/marcellus.regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/marcellus.regular.ttf') format('opentype');
}




/* Header */
header {
    font-family: 'shrikhand', sans-serif;
    background:#f7f8f3;
    padding: 10px 0;
    font-size: 28px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);/* gentle shadow */
}

h1 {
    font-weight: normal;
}



.error-message {
    font-size: 12px;
    color: red;
    margin-top: 5px;
    display: block;
    text-align: left; /* Ensures they stay left-aligned */
}


#qr-code-container {
    display: none;
    text-align: center;
}


#transaction-id-container {
    display: none;
    text-align: center;
}

#success-message {
    padding: 15px;
    margin: 20px auto 0; /* Center horizontally and add top margin */
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    width: fit-content;
    max-width: 90%;
    display: none;
    font-weight: bold;
    background-color: transparent; /* fallback */
    border: none; /* Make sure no border is applied */
}



#success-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#success-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


#total_price {
    margin-top: 20px;  /* Space before the price */
    margin-bottom: 20px;  /* Space after the price */
}

/* Add this to your CSS file */
.green-message {
    color: #000;  /* Dark green text */
    background-color: #d4edda;  /* Light green background */
    border: 1px solid #f5c6cb;  /* Light green border */
    padding: 20px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
}


.alert {
    padding: 30px;
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Form Section */
.order-form {
    background:transparent;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}



/* Form Fields */
.order-form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: left; /* Ensures they stay left-aligned */
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 10px;
    max-width: 100%;
    overflow-x: hidden;
    margin-top: 5px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    font-size: 16px;
}

/* Textarea */
/* Prevent textarea resizing */
.order-form textarea {
    resize: none;  /* Prevent resizing */
    height: 80px;  /* Fixed height */
    max-height: 80px;  /* Prevent growing */
    min-height: 80px;  /* Prevent shrinking */
}

/* Submit Button */
.order-form button {
    display: block;
    width: auto;
    padding: 12px 20px;
    margin: 20px auto 10px;
    background-color: #df9db0; /* Matching footer button color */
    color: #000;
    border: none;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

/* Hover effect */
.order-form button:hover {
    background-color: #df9db0; /* Matching hover color */
}
/* The entire box (button, arrow, icons) */
.social-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    box-shadow:none;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column-reverse; 
}

/* When shown */
.social-box.show {
    display: flex;
    opacity: 1;
}


/* Icon images inside */
.icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: background 0.3s;
}

/* Enquire button (now inside box) */
.enquire-btn {
    position: static; /* Remove fixed positioning */
}

/* Arrow icon (now inside box) */
.arrow-icon {
    margin-top: -10px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    user-select: none;
    cursor: default;
    display: none;
}

/* Social icons layout */
.header-contact-social-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


#contactDetails {
    transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-form {
        width: 95%;
        padding: 20px;
    }

      body {
        padding-top: 140px;
    }

    header {
        font-size: 18px;
    }

     /* Enquire Button */
   
    .arrow-icon {
        width: 20px;
        height: 20px;
    }


    /* Social box wrapper */
    .social-box {
        display: inline-block;
        bottom: 10px;
        right: 5px; 
    }

    .icon-img {
        width: 35px;
        height: 35px;
    }
}
