﻿/* === ANA CONTAINER === */
section.container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 15px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
}

/* === SOL MENÜ === */
.container-navbar {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 10px 0;
}

    .container-navbar a {
        display: block;
        padding: 12px 18px;
        color: #333;
        text-decoration: none;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .container-navbar a:hover {
            background: #f0f4f8;
            border-left-color: #1e3c72;
            color: #1e3c72;
        }

        .container-navbar a.active {
            background: #f0f4f8;
            color: #1e3c72;
            border-left-color: #f15a24;
        }

/* === SAĞ TARAF (İÇERİK + FORM) === */
section.container > div:last-child {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
}

    /* İçerik Başlık */
    section.container > div:last-child h2 {
        font-size: 1.8rem;
        color: #1e3c72;
        margin-bottom: 20px;
        font-weight: 600;
        position: relative;
    }

        section.container > div:last-child h2::after {
            content: "";
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 50px;
            height: 2px;
            background: #f15a24;
            border-radius: 2px;
        }

    section.container > div:last-child p {
        color: #555;
        margin-bottom: 18px;
        text-align: justify;
    }

/* === CATEGORY PRODUCT DETAIL === */
.category-product-detail {
    padding: 20px 0;
}

    .category-product-detail img {
        width: max-content;
        height: 400px;
        object-fit: contain;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .category-product-detail h1 {
        font-size: 1.6rem;
        color: #1e3c72;
        margin-bottom: 15px;
        font-weight: 600;
        position: relative;
    }

        .category-product-detail h1::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 40px;
            height: 2px;
            background: #f15a24;
            border-radius: 2px;
        }

/* === FORM === */
.contact-form {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 30px;
}

    .contact-form h2 {
        font-size: 1.5rem;
        color: #1e3c72;
        margin-bottom: 20px;
        position: relative;
    }

        .contact-form h2::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 50px;
            height: 2px;
            background: #f15a24;
            border-radius: 2px;
        }

/* GRID YAPISI */
#craneForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* FORM INPUTLARI */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #f9f9f9;
    transition: all 0.25s;
}

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #1e3c72;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.08);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
}

/* BUTTON */
.submit-btn {
    grid-column: span 2;
    background: #1e3c72;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .submit-btn:hover {
        background: #f15a24;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30,60,114,0.15);
    }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    section.container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .container-navbar {
        flex-direction: row;
        overflow-x: auto;
        border-radius: 8px;
    }
    .container-navbar {
        flex-direction: row;
        overflow-x: auto;
        border-radius: 8px;
    }
    section.container > div:last-child {
        padding: 20px;
        width: 100%;
    }
    .container-navbar {
        flex-direction: column;
        height: max-content;
        flex: auto;
        width: 100%;
    }
        .container-navbar a {
            white-space: nowrap;
            padding: 10px 15px;
            border-left: none;
            border-bottom: 3px solid transparent;
        }

            .container-navbar a:hover {
                border-bottom-color: #1e3c72;
            }

            .container-navbar a.active {
                border-bottom-color: #f15a24;
            }

    section.container > div:last-child {
        padding: 20px;
    }

    #craneForm {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section.container {
        padding: 15px 10px;
    }

    .container-navbar {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 20px 15px;
    }

    #craneForm {
        display: flex;
        flex-direction: column;
    }
    section.container > div:last-child p {
        color: #555;
        margin-bottom: 18px;
        text-align: start;
    }
    .products-dropdown {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
