:root {
    --primary-color: #26c6b5;
    --primary-dark: #1ea999;
    --secondary-color: #f8f8f8;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --medium-gray: #999;
    --dark-gray: #666;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.header-title {
    display: none;
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

.by-text {
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
}

.nejo-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.nejo-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.phone, .email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.phone i, .email i {
    color: var(--primary-color);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.6s;
    animation-fill-mode: both;
    max-width: 600px;
    margin: 0 auto;
}

.dimensions-img {
    max-width: 80%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.configurator {
    padding: 4rem 5%;
    background-color: var(--white);
}

.configurator h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.configurator h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.config-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.config-options {
    flex: 2;
}

.preview-container {
    flex: 1;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.option-group {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.option-group h4 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: calc(33.333% - 1rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.options.tiles .option,
.options.chairs .option {
    width: calc(20% - 1rem);
}

.option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.option.selected {
    border-color: var(--primary-color);
    background-color: rgba(38, 198, 181, 0.1);
}

.option img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.options.tiles .option img,
.options.chairs .option img {
    height: 80px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.quantity-btn.minus {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus {
    border-radius: 0 4px 4px 0;
}

input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.preview {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.preview-image {
    height: 250px;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-details h4 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.preview-details ul {
    list-style: none;
}

.preview-details li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.preview-details span {
    font-weight: 500;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about {
    padding: 4rem 5%;
    background-color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

footer {
    background-color: #333;
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo .logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo p a {
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-logo p a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact, .footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-contact h3, .footer-links h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h3::after, .footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#form-selection-summary {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .config-container {
        flex-direction: column;
    }
    
    .preview-container {
        position: static;
    }
    
    .option {
        width: calc(50% - 1rem);
    }
    
    .options.tiles .option,
    .options.chairs .option {
        width: calc(25% - 1rem);
    }
}

@media (min-width: 768px) {
    .logo-container {
        display: flex;
        align-items: center;
    }
    
    .header-title {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .contact-info {
        margin-top: 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .option {
        width: calc(50% - 1rem);
    }
    
    .options.tiles .option,
    .options.chairs .option {
        width: calc(33.333% - 1rem);
    }
}

@media (max-width: 576px) {
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .option {
        width: 100%;
    }
    
    .options.tiles .option,
    .options.chairs .option {
        width: calc(50% - 1rem);
    }
    
    .footer-content {
        flex-direction: column;
    }
}