/* Basic Form Styling */
#purycot-design-form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#purycot-design-form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

#purycot-order-id-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#purycot-order-id-form input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
}

#get-order-details-btn,
#submit-design-form-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

#get-order-details-btn:hover,
#submit-design-form-btn:hover {
    background-color: #0056b3;
}

/* Messages */
#purycot-form-messages {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.loading-message {
    color: #007bff;
    font-style: italic;
}

.error-message {
    background-color: #ffe0e0;
    color: #cc0000;
    border: 1px solid #cc0000;
}

.info-message {
    background-color: #e0f2ff;
    color: #0056b3;
    border: 1px solid #0056b3;
}

/* Dynamic Design Upload Form */
.product-design-section {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 6px;
}

.product-design-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.product-thumb {
    max-width: 100px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

.print-side-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    box-sizing: border-box;
}

.print-info-text {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.print-example-area {
    text-align: center;
    margin-bottom: 20px;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
}

.example-tip {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.example-image {
    max-width: 250px;
    height: auto;
    border: 1px dashed #bbb;
    padding: 5px;
    box-sizing: border-box;
}

.upload-tip {
    font-weight: bold;
    color: #555;
    margin-top: 20px;
    margin-bottom: 5px;
}

.design-notes {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.design-file-input {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 10px;
    border: none;
    background: none;
    box-sizing: border-box;
}

.file-error-message {
    color: #cc0000;
    font-size: 0.85em;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Horizontal Rule between sections */
.product-design-section + hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* Popup Styling */
.purycot-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.purycot-popup-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.purycot-popup-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #333;
}

.purycot-popup-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.purycot-popup-ok-btn,
.purycot-popup-final-submit-btn,
.purycot-popup-pincode-confirm-btn {
    background-color: #28a745; /* Green for OK/Submit */
    color: white;
}

.purycot-popup-ok-btn:hover,
.purycot-popup-final-submit-btn:hover,
.purycot-popup-pincode-confirm-btn:hover {
    background-color: #218838;
}

.purycot-popup-edit-btn {
    background-color: #6c757d; /* Grey for Edit */
    color: white;
}

.purycot-popup-edit-btn:hover {
    background-color: #5a6268;
}

#pincode-input {
    width: calc(100% - 40px);
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #purycot-design-form-container {
        margin: 20px auto;
        padding: 20px;
    }

    .purycot-popup-content {
        padding: 20px;
    }

    .purycot-popup-buttons button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}