﻿
.container {
    width: 950px;
    margin: 20px auto;
    border: 2px solid lightgrey;
    padding: 60px;
    background: white;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input, select, textarea {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

    .checkbox-group label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        cursor: pointer;
    }

    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #005df7;
        margin: 0;
    }

.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .option-group label {
        width: 140px;
    }

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-grow: 1;
}

    .options button {
        padding: 8px 20px;
        border: 1px solid lightgrey;
        background: #f0f0f0;
        cursor: pointer;
        border-radius: 5px;
    }

        .options button:hover {
            background: #ddd;
        }

        .options button.selected {
            position: relative;
            background-color: #E6F7FF; /* Light blue */
            color: #005df7;
            border: 1px solid #005df7;
            font-weight: bold;
            overflow: hidden;
        }

            .options button.selected::after {
                content: " . ";
                position: absolute;
                bottom: 0;
                right: 0;
                background: #005df7;
                color: #005df7;
                font-size: 12px;
                padding: 5px;
                font-weight: bold;
                clip-path: polygon(100% 0, 0 100%, 100% 100%);
            }

/* Target only PCB Color buttons using a class */
.pcb-color-options button {
    position: relative;
    padding-left: 30px; /* Space for the circle */
}

.silk-color-options button {
    position: relative;
    padding-left: 30px; /* Space for the circle */
}

    .silk-color-options button::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 1px solid #ccc;
    }
/* Small color circle inside buttons */
.pcb-color-options button::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* Specific colors for each button */
.pcb-color-options button:nth-child(1)::before {
    background-color: green;
}

.pcb-color-options button:nth-child(2)::before {
    background-color: white;
    border: 1px solid black;
}

.pcb-color-options button:nth-child(3)::before {
    background-color: black;
}

.pcb-color-options button:nth-child(4)::before {
    background-color: red;
}

.pcb-color-options button:nth-child(5)::before {
    background-color: blue;
}

.silk-color-options button:nth-child(1)::before {
    background-color: white;
    border: 1px solid black;
}

.silk-color-options button:nth-child(2)::before {
    background-color: black;
}

.other-option {
    border: 1px solid lightgrey;
    padding: 5px;
    display: inline-block;
    background: #f8f8f8;
    border-radius: 5px;
    color: red;
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .file-upload-container button {
        padding: 8px 12px;
        border: 1px solid lightgrey;
        background: #f0f0f0;
        cursor: pointer;
        border-radius: 5px;
        margin-bottom: 15px;
    }

.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    margin-bottom:15px;
}

.submit-btn {
    margin-top:20px;
    text-align: center;
    font-weight: bold;
    border: 2px solid lightgrey;
    padding: 10px;
    background: #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width:100%;
}

    .submit-btn:hover {
        background: #ddd;
    }
/* Swal */
.swal2-popup {
    width: 350px !important;
}


.swal2-title {
    font-size: 25px !important;
}

.swal2-content {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .option-group label {
            width: 100%;
            text-align: left;
        }

    .options {
        flex-direction: column;
        width: 100%;
    }

        .options button {
            width: 100%;
            text-align: center;
        }

    .file-upload-container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .submit-btn {
        width: 100%;
    }

    input, textarea {
        width: 100%;
        font-size: 16px;
        margin-left: 0px !important;
    }
}


