.ecd-ask-for-price-container {
    margin: 10px 0;
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

.ecd-ask-for-price-container:not(:only-child) {
    width: 49%;
}

.ecd-ask-for-price-container:not(:only-child):first-child {
    margin-right: 2%;
}

.ecd-ask-price-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #00c853;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecd-ask-price-button:hover {
    background: #00e676;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
    transform: translateY(-1px);
}

.ecd-ask-price-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.ecd-ask-price-button .ecd-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.ecd-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ecd-modal.ecd-modal-show {
    opacity: 1;
}

.ecd-modal-content {
    background-color: #ffffff;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ecd-modal-header {
    padding: 24px 28px;
    background: #1a1a1a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecd-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.ecd-modal-close {
    color: white;
    font-size: 32px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.ecd-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ecd-modal-body {
    padding: 28px;
}

.ecd-modal-body p {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.ecd-form-group {
    margin-bottom: 20px;
}

.ecd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.ecd-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ecd-input:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.ecd-error {
    background-color: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.ecd-modal-footer {
    padding: 20px 28px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ecd-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecd-btn-primary {
    background: #00c853;
    color: white;
}

.ecd-btn-primary:hover {
    background: #00e676;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.ecd-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.ecd-btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.ecd-btn-secondary:hover {
    background-color: #d0d0d0;
}

.ecd-success-content .ecd-modal-header {
    background: #00c853;
}

.ecd-success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.ecd-success-icon svg {
    color: #00c853;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ecd-success-message {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 10px !important;
}

.ecd-success-submessage {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 0 !important;
}

.ecd-success-content .ecd-btn-primary {
    background: #00c853;
}

.ecd-success-content .ecd-btn-primary:hover {
    background: #00e676;
}

.ecd-success-content .ecd-modal-footer {
    justify-content: center;
}

@media (max-width: 768px) {
    .ecd-ask-for-price-container {
        display: block;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .ecd-ask-price-button {
        width: 100%;
        justify-content: center;
    }

    .ecd-modal-content {
        width: 95%;
        margin: 20px;
    }

    .ecd-modal-footer {
        flex-direction: column;
    }

    .ecd-btn {
        width: 100%;
    }
}
