/**
 * Product Actions - Free Sample & Ask Question
 */

/* Product Actions Container */
.homeda-product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Sample Notice */
.homeda-sample-ordered-notice {
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-left: 3px solid rgba(0, 0, 0, 0.8);
    color: #E3E3E3;
    font-size: 14px;
}

/* Modal Styles */
.homeda-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homeda-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.homeda-modal-content {
    position: relative;
    background: #1D1D1D;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #767676;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.homeda-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #E3E3E3;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.homeda-modal-close:hover {
    color: #999;
}

.homeda-modal-content h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: bold;
    color: #E3E3E3;
}

.homeda-modal-product-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.homeda-modal-notice {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(118, 118, 118, 0.3);
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #E3E3E3;
    border-radius: 3px;
}

/* Form Fields */
.homeda-form-field {
    margin-bottom: 15px;
}

.homeda-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    font-size: 14px;
    color: #E3E3E3;
}

.homeda-form-field textarea,
.homeda-form-field input[type="text"],
.homeda-form-field input[type="email"],
.homeda-form-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #767676;
    font-size: 14px;
    background: #2A2A2A;
    color: #E3E3E3;
    resize: vertical;
    border-radius: 3px;
}

.homeda-form-field textarea:focus,
.homeda-form-field input:focus {
    outline: none;
    border-color: #999;
}

/* Form Actions */
.homeda-form-actions {
    margin-top: 20px;
}

.homeda-form-actions-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.homeda-form-actions-row .homeda-btn-wrap {
    min-width: auto;
}

/* Buttons */
.homeda-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.homeda-btn-wrap button[type="submit"],
.homeda-btn:not(.homeda-modal-cancel) {
    background-color: #E3E3E3;
    color: #1D1D1D;
}

.homeda-btn-wrap button[type="submit"]:hover,
.homeda-btn:not(.homeda-modal-cancel):hover {
    background-color: #fff;
}

.homeda-modal-cancel,
.homeda-btn-secondary .homeda-btn {
    background-color: #767676;
    color: #E3E3E3;
}

.homeda-modal-cancel:hover,
.homeda-btn-secondary .homeda-btn:hover {
    background-color: #888;
}

/* Form Messages */
.homeda-form-message {
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    border-radius: 3px;
}

.homeda-form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.homeda-form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #E57373;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Body class when modal is open */
body.homeda-modal-open {
    overflow: hidden;
}

/* Modal: Select Variant Notice */
.homeda-modal-notice-content {
    max-width: 450px;
    text-align: center;
}

.homeda-modal-notice-content h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 24px;
    color: #E3E3E3;
    font-weight: bold;
}

.homeda-modal-notice-content p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #999;
}

.homeda-modal-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.homeda-modal-icon svg {
    width: 64px;
    height: 64px;
}

.homeda-modal-icon svg circle,
.homeda-modal-icon svg path {
    stroke: #E3E3E3;
}

.homeda-modal-icon svg circle:last-child {
    fill: #E3E3E3;
}

.homeda-modal-notice-content .homeda-form-actions {
    margin-top: 20px;
}

.homeda-modal-notice-content .homeda-btn {
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .homeda-modal-content {
        padding: 25px 20px;
        width: 95%;
    }

    .homeda-form-actions-row {
        flex-direction: column;
    }

    .homeda-form-actions-row .homeda-btn-wrap {
        width: 100%;
    }

    .homeda-btn {
        width: 100%;
    }

    .homeda-modal-content h3 {
        font-size: 16px;
    }

    /* Select Variant Modal - Responsive */
    .homeda-modal-notice-content {
        max-width: 90%;
        padding: 30px 20px;
    }

    .homeda-modal-notice-content h3 {
        font-size: 20px;
    }

    .homeda-modal-notice-content p {
        font-size: 14px;
    }

    .homeda-modal-icon svg {
        width: 48px;
        height: 48px;
    }

    .homeda-modal-notice-content .homeda-btn {
        width: 100%;
        min-width: auto;
    }
}