/***** Base Reset *****/
* {
    box-sizing: border-box; /* Ensures padding and borders are included in element width/height */
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Times New Roman", Times, serif;
}

h1 {
    color: #043c74;
    font-size: 3rem;
}

.h2-index {
    color: #000000;
    text-align: center;
}

/***** Background, currently for form pages *****/
.background-color {
    background-color: #F7F7F5;
}

/***** Header Section *****/
.header {
    padding: 20px 0;
    text-align: center;
}

/***** Navigation Bar (Toolbar) *****/
.navigation-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px; /* Space below nav bar */
}

/***** Logo (links to index.html) *****/
.logo-index {
    height: 40px;
    width: auto;
}

/***** Icon navigation buttons *****/
.icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    font-family: inherit;
}

/***** Styling of the icons *****/
.icon-button i {
    font-size: 20px;
    margin-bottom: 4px;
    color: #383e3e;
}

/***** Centered page content Wrapper *****/
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/***** Form container (Like the one on index) *****/
.formular-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

/***** Generic form layout and its fields *****/
.generic-form {
    max-width: 2000px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.generic-form [type="text"],
.generic-form [type="email"],
.generic-form [type="password"],
.input-container input {
    width: 100%;
    padding: 10px;
    font-size: 1.2rem;
    color: black;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

/***** Generic buttons - Keep consistency, create class for different layout, display etc. *****/
.generic-form button,
.submit-button button,
.grid-buttons button,
.footer-button {
    padding: 10px 20px;
    background-color: #043c74;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.generic-form button:hover,
.submit-button button:hover,
.grid-buttons button:hover,
.footer-button:hover {
    background-color: #245484;
}

/* Grid layout container for buttons inside order cards */
.grid-buttons {
    display: grid;
    /* Create flexible columns that fit based on available space and minimum button width */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.grid-buttons button {
    width: 100%; /* Uniform button size despite different text inside */
}

.grid-buttons form {
    margin: 0; /* Remove default margins inside forms to align properly */
}

/***** Submit button container *****/
.submit-button {
    text-align: center;
}

/***** Input Field Container *****/
.input-container {
    margin-bottom: 10px;
}

/***** Dropdown styling *****/
.formular-dropDown {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

/***** Checkbox consent - Used for form(s) *****/
.checkbox-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-family: inherit;
}

/***** Form descriptions (index.html text paragraph) *****/
.form-description-wrapper {
    padding: 5px;
}

.form-description {
    display: flex;
    justify-content: center;
    font-size: 1rem;
    text-align: left;
    color: #000000;
    margin-bottom: 5px;
    line-height: 1.6;
}


/***** Footer Section *****/
.index-site-footer {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #ccc;
}

.footer-side {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer div {
    display: flex;
}

.footer-button {
    text-decoration: none;
    display: inline-block;
}

/***** Order details layout *****/
.order-details-header {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.object-details {
    width: 100%;
    max-width: 475px;
    margin: 50px auto;
    padding: 25px 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    text-align: left;
}

.object-details h2 {
    font-size: 1.8rem;
    color: #043c74;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.object-details p {
    margin-bottom: 10px;
}

/***** SVG wrapper *****/
.carport-svg-topview {
    display: flex;
    justify-content: center;
    margin: 100px 0 20px 0;
    overflow-x: auto;
}

.carport-svg-topview svg {
    display: block;
    width: 700px;
    height: auto;
}

/***** Orders & cards *****/

/* Container for the entire orders section */
.orders-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Heading style inside the orders section */
.orders-section h2 {
    font-size: 1.8rem;
    color: #043c74;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/***** Grid layout - Displays multiple orders card side by side *****/
.order-card-container {
    display: grid;
    /* Auto-fit as many columns as possible with a minimum width of 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/****** Style for each individual order card ******/
.order-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Card stretches to match grid height */
}

/***** Layout for displaying cards vertically ******/
.order-card-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/***** Price Form Spacing *****/
.price-form {
    margin-bottom: 15px;
}


