* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f1f8ff;
}

main {
    margin: 0px;
}

header {
    background-color: #f1f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 10px;
}

#header-svg-icon {
    height: 200px;
    padding: 0px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*======================
HAMBURGER AND NAVIGATION
========================*/

#hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #f0f0f0;
    border: 2px solid rgb(0, 0, 0, 1);
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    align-items: center;
    z-index: 2001;
    border-radius: 8px;
}

/*the lines inside the button that make the hamburger*/
#hamburger span {
    display: block;
    width: 42px;
    height: 4px;
    padding: 0;
    margin: 0;
    background-color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/*==========*/
/*SLIDE MENU*/
/*==========*/

/*
MENU STATE MANAGEMENT
All menu open/close behavior is controlled by toggling
the 'menu-open' class on the body element.
When body has class 'menu-open':
  - slide menu slides in from left
  - overlay appears behind menu
  - page scroll is disabled
  - hamburger animates into an X
JavaScript only needs to add/remove this one class.
*/

#slide-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #f1f8ff;
    z-index: 2000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    padding: 4rem 1rem 1rem 1rem;
}

/*
The menu-open class can be toggled on the body element
This activates and deactives the css to open menu
and style to hamburger into an x
The individual elements are selected with
a descendant combinator ID
*/

/*slide out menu when menu-open class is added to body element*/
body.menu-open #slide-menu {
    left: 0;
}

/*changes the display on the overlay from none to block
when menu-open class is added to body element*/
body.menu-open #menu-overlay {
    display: block;
}

/*stops the feed scroll when menu-open class is added
to body element*/
body.menu-open {
    overflow: hidden;
}

/*translates the hamburger into an x
when menu-open class added to body element*/

body.menu-open #hamburger span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

body.menu-open #hamburger span:nth-child(2) {
    opacity: 0;
}

body.menu-open #hamburger span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

#slide-menu ul {
    list-style: none;
}

#slide-menu ul li {
    border-bottom: 1px solid #ddd;
}

#slide-menu ul li a {
    display: block;
    padding: 1rem 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

#slide-menu ul li a:hover {
    color: #0066cc;
}

#menu-active {
    background-color: #ddd;
}

#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

/* Form CSS */

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: clamp(29px, 8vw, 37px);
}

.section-title {
    font-size: clamp(14px, 5vw, 30px);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

#container {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: clamp(11px, 3.5vw, 30px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: clamp(11px, 3.5vw, 30px);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-group:hover {
    background: #e9ecef;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #3498db;
    border-radius: 4px;
    position: relative;
    background: white;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.checkbox-label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.checkbox-price {
    font-weight: 600;
    color: #27ae60;
    margin-left: 10px;
}

.counter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.counter-label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    font-size: clamp(11px, 3.5vw, 30px);
    margin-bottom: 12px;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 50%;
    font-size: clamp(11px, 3.5vw, 20px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.counter-btn:hover {
    background: #3498db;
    color: white;
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: clamp(14px, 3.5vw, 18px);
    color: #2c3e50;
}

.counter-total {
    font-weight: 600;
    color: #27ae60;
    margin-left: 12px;
    min-width: 10px;
    text-align: right;
}

.price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.price-summary h3 {
    margin-bottom: 20px;
    font-size: clamp(18px, 3.5vw, 24px);
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.total-line {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(18px, 3.5vw, 24px);
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.success-message {
    display: none;
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 20px;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* animate hamburger menu icon */
@keyframes hamburger-animate {
  0%   {background-color:#333;}
  16% {background-color:#333;}
  33% {background-color: rgb(244,180,255);}
  50% {background: #333;}
  100%{background-color: #333;}
}

#hamburger-1 {
    animation-name: hamburger-animate;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

#hamburger-2 {
    animation-name: hamburger-animate;
    animation-duration: 6s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
}

#hamburger-3 {
    animation-name: hamburger-animate;
    animation-duration: 6s;
    animation-delay: 2s;
    animation-iteration-count: infinite;
}

/* on wide screens show the menu permanently */
@media (min-width: 768px) {

    #slide-menu {
        left: 0;
        box-shadow: none;
        border-right: 1px solid #ddd;
        position: sticky;
        grid-column: 1;
        grid-row: 1;
    }

    #hamburger {
        display: none;
    }

    #menu-overlay {
        display: none !important;
    }

    body {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: 1fr;
        height: 100vh;
        max-width: 1400px;
        margin:0 auto;
        overflow: hidden;
    }

    main {
        grid-column: 2;
        grid-row: 1;
        overflow-y: auto;
        min-height: 0;
        width: 100%;
    }
}